python-devtools icon indicating copy to clipboard operation
python-devtools copied to clipboard

more precise timer summary

Open banteg opened this issue 3 years ago • 1 comments

  • use time.perf_counter as the most precise way of measuring performance
  • don't lose fast timer samples when calculating summary, use a list instead of a set

banteg avatar Sep 10 '22 22:09 banteg

Codecov Report

Merging #113 (e12e34f) into main (5efff5f) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #113   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          522       522           
  Branches        86        86           
=========================================
  Hits           522       522           
Impacted Files Coverage Δ
devtools/timer.py 100.00% <100.00%> (ø)

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 5efff5f...e12e34f. Read the comment docs.

codecov[bot] avatar Sep 10 '22 22:09 codecov[bot]

:+1: thanks so much.

samuelcolvin avatar Nov 25 '22 10:11 samuelcolvin