#runner #benchmark #test-runner #copy-paste #rustc #black-box

libtest-mirror

a copy-paste of rust's built-in test runner

1 unstable release

0.1.0+1.82.0 Nov 7, 2024

#307 in Testing

Download history 106/week @ 2024-11-04 9/week @ 2024-11-11

115 downloads per month

MIT/Apache

245KB
6K SLoC

Support code for rustc's built in unit-test and micro-benchmarking framework.

Almost all user code will only be interested in Bencher and black_box. All other interactions (such as writing tests and benchmarks themselves) should be done via the #[test] and #[bench] attributes.

See the Testing Chapter of the book for more details.

Dependencies

~1.5MB
~22K SLoC