perf-timer
perf-timer copied to clipboard
An indispensable performance timer for Python
add variants of trio_perf_counter() and TrioPerfTimer that include child tasks TODO: make including child tasks the default Fixes #8
For perf-timer async support (Trio), I implemented the smallest possible thing: within a task, measure time excluding periods where the task is de-scheduled (sleeping, blocked on i/o or an event,...
from the examples in https://github.com/belm0/perf-timer: timer "process thumbnail": avg 73.1 µs ± 18.0 µs, max 320.5 µs in 292 runs * average is massively cool * deviation is massively cool...