Closed filipecosta90 closed 2 years ago
Merging #46 (164c49c) into master (35c7773) will increase coverage by
0.10%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #46 +/- ##
==========================================
+ Coverage 76.81% 76.91% +0.10%
==========================================
Files 6 6
Lines 690 693 +3
==========================================
+ Hits 530 533 +3
Misses 95 95
Partials 65 65
Impacted Files | Coverage Δ | |
---|---|---|
hdr.go | 89.93% <100.00%> (+0.10%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 35c7773...164c49c. Read the comment docs.
This PR optimizes ValueAtPercentile(s) by introducing nextCountAtIdx() and only updating the iterator highestEquivalentValue when required in order to reduce wasteful cpu usage. If we look at ValueAtPercentile numbers, It reduced by 25.6% the on-cpu usage.
master branch benchmark percentiles calculation:
cpu.optimize.nextCountAtIdx branch benchmark percentiles calculation: