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

criterion-cpu-time

an alternative cpu measurement for criterion

1 unstable release

0.1.0 Sep 4, 2019

#11 in #cpu-time

Download history 3505/week @ 2024-07-24 3266/week @ 2024-07-31 3192/week @ 2024-08-07 4614/week @ 2024-08-14 4465/week @ 2024-08-21 3676/week @ 2024-08-28 4728/week @ 2024-09-04 4707/week @ 2024-09-11 4528/week @ 2024-09-18 5184/week @ 2024-09-25 5223/week @ 2024-10-02 4677/week @ 2024-10-09 5113/week @ 2024-10-16 4747/week @ 2024-10-23 4372/week @ 2024-10-30 3757/week @ 2024-11-06

18,865 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

~9–20MB
~264K SLoC