aio-libs / propcache

Fast property caching
Apache License 2.0
11 stars 3 forks source link

Add benchmarks for cache miss #65

Closed bdraco closed 1 month ago

bdraco commented 1 month ago

I realized we should have benchmarks for cache miss as well

Sadly we have to pop out the key every time so that gets included in the benchmark but thats ok as long as we think about that when looking at the data

codspeed-hq[bot] commented 1 month ago

CodSpeed Performance Report

Merging #65 will create unknown performance changes

Comparing cache_miss (63af59c) with master (b7be10f)

Summary

๐Ÿ†• 4 new benchmarks โ‰๏ธ 2 (๐Ÿ‘ 2) dropped benchmarks

Benchmarks breakdown

Benchmark master cache_miss Change
๐Ÿ†• test_cached_property_cache_hit N/A 39.4 ยตs N/A
๐Ÿ†• test_cached_property_cache_miss N/A 115.8 ยตs N/A
๐Ÿ‘ test_cached_property_caching 39.2 ยตs N/A N/A
๐Ÿ†• test_under_cached_property_cache_hit N/A 57.7 ยตs N/A
๐Ÿ†• test_under_cached_property_cache_miss N/A 111 ยตs N/A
๐Ÿ‘ test_under_cached_property_caching 57.5 ยตs N/A N/A
codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.93%. Comparing base (b7be10f) to head (63af59c). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #65 +/- ## ========================================== + Coverage 88.52% 88.93% +0.41% ========================================== Files 18 18 Lines 697 723 +26 Branches 70 73 +3 ========================================== + Hits 617 643 +26 Misses 62 62 Partials 18 18 ``` | [Flag](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | Coverage ฮ” | | |---|---|---| | [CI-GHA](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `88.93% <100.00%> (+0.41%)` | :arrow_up: | | [MyPy](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `77.43% <70.37%> (-0.06%)` | :arrow_down: | | [OS-Linux](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `99.42% <100.00%> (+0.04%)` | :arrow_up: | | [OS-Windows](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.16% <100.00%> (+0.44%)` | :arrow_up: | | [OS-macOS](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.66% <100.00%> (+0.35%)` | :arrow_up: | | [Py-3.10.11](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.37% <100.00%> (+0.37%)` | :arrow_up: | | [Py-3.10.15](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.68% <100.00%> (+0.18%)` | :arrow_up: | | [Py-3.11.10](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.68% <100.00%> (+0.18%)` | :arrow_up: | | [Py-3.11.9](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.37% <100.00%> (+0.37%)` | :arrow_up: | | [Py-3.12.7](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.68% <100.00%> (+0.18%)` | :arrow_up: | | [Py-3.13.0](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.68% <100.00%> (+0.18%)` | :arrow_up: | | [Py-3.9.13](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.36% <100.00%> (+0.37%)` | :arrow_up: | | [Py-3.9.20](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.68% <100.00%> (+0.18%)` | :arrow_up: | | [Py-pypy7.3.16](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.08% <100.00%> (+0.26%)` | :arrow_up: | | [Py-pypy7.3.17](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.09% <100.00%> (+0.26%)` | :arrow_up: | | [VM-macos-latest](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.66% <100.00%> (+0.35%)` | :arrow_up: | | [VM-ubuntu-latest](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `99.42% <100.00%> (+0.04%)` | :arrow_up: | | [VM-windows-latest](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.16% <100.00%> (+0.44%)` | :arrow_up: | | [pytest](https://app.codecov.io/gh/aio-libs/propcache/pull/65/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `99.42% <100.00%> (+0.04%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.