@thi.ng/bench
@thi.ng/bench
This project is part of the @thi.ng/umbrella monorepo.
About
Basic, non-precise benchmarking helpers.
This feature was previously part of the @thi.ng/api package.
Installation
yarn add @thi.ng/bench
Dependencies
None
Usage examples
; // test functions; ; // measure single execution timetimedfib40;// 714ms// 102334155timedfib240;// 0ms// 102334155 // measure 1mil iterations (default)benchfib10, 1e6;// 395ms// 55 benchfib210, 1e6;// 53ms// 55
Authors
- Karsten Schmidt
License
© 2018 Karsten Schmidt // Apache Software License 2.0