#cpu-time #time-measurement #criterion #posix

criterion-cpu-time

an alternative cpu measurement for criterion

1 unstable release

0.1.0 Sep 4, 2019

#10 in #cpu-time

Download history 1920/week @ 2024-04-08 2025/week @ 2024-04-15 2396/week @ 2024-04-22 2112/week @ 2024-04-29 2325/week @ 2024-05-06 2651/week @ 2024-05-13 2532/week @ 2024-05-20 2406/week @ 2024-05-27 2300/week @ 2024-06-03 3030/week @ 2024-06-10 3951/week @ 2024-06-17 3324/week @ 2024-06-24 2302/week @ 2024-07-01 2861/week @ 2024-07-08 3223/week @ 2024-07-15 3227/week @ 2024-07-22

11,788 downloads per month
Used in language-benchmarks

Apache-2.0

8KB
170 lines

criterion-cpu-time

As criterion supports custom measurement now, we can use POSIX CPU time rather than wall time now!

Implementation

Use getrusage to get currently used time.

Dependencies

~8–19MB
~247K SLoC