benchmark_runner 2.0.2
benchmark_runner: ^2.0.2 copied to clipboard
A library for writing inline micro-benchmarks, running sync/async benchmarks, reporting and exporting score statistics.
2.0.2 #
- Updated dependencies.
- Applied suggested lints.
2.0.1 #
- Simplified methods
measureandmeasureAsync. - Added
README.mdto foldergnuplot.
2.0.0 #
Breaking changes:
- The functions
benchmarkandasyncBenchmarkare not longer generic and now have the optional parameters:warmUpDuration,sampleSize,customEmitter. - The classes
BenchmarkandAsyncBenchmarkwere renamedScoreGeneratorandAsyncScoreGenerator,respectively, They no longer inherit fromBenchmarkBaseandAsyncBenchmarkBaseand are now solely responsible for generating benchmark scores. As such, the constructor parametersdescriptionandemitterhave been removed. - Generating the benchmark reports
is delegated to
ScoreEmitter. - The function
sampleSizenow returns an object of typeSampleSizeinstead of a record. - The default score emitter is now
StatsEmitter. To emit a report that is similar to that printed bybenchmark_harnessuseMeanEmitter.
1.0.0 #
Breaking changes:
- The command
benchmark_runnernow has subcommandsreportandexport. - The functions
benchmarkandasyncBenchmarkare now generic and accept the optional parameters:E extents ColorPrintEmitter emitter,report(instance, emitter){}, whereinstanceis an instance ofBenchmarkorAsyncBenchmark, respectively. The callback can be can be used to pass benchmark scores to the emitter.
0.1.9 #
- Changed default encoding of standard output of benchmark processes
to
Utf8Codec(). This enables the correct output of histograms in windows terminals with utf8 support.
0.1.8 #
- Updated docs.
- Amended error reporting.
- Formatted executable.
0.1.7 #
- Fixed bug in function
blockHistogramthat surfaced when the inter-quartile-rangeiqrof the score sample is zero. - Made benchmark report more compact.
0.1.6 #
- Format.
- Amended link in docs.
0.1.5 #
- Made BenchmarkHelper.sampleSize a variable assignable with a user defined function. This allows changing the score sample generation customizing the relation between the single score estimate and the score sample size.
0.1.4 #
- Fixed bugs in runner (results were listed twice, exit code was always 0).
0.1.3 #
- Added progress indicator to output generated by
benchmark_runner. - Results are now printed as soon as the individual process returns.
0.1.2 #
- Amended all links referencing the API documentation. (/doc/api -> /latest).
0.1.1 #
- Added extension
BenchmarkHelper. - Improved calculation of sample size.
- Extended docs, added image.
- Added class
Score.
0.1.0 #
- Added tests for class
Stats. ColorEmitternow scales benchmark score stats (that are larger than 1000 us).- Added class
Score.
0.0.4 #
- Updated dependencies.
0.0.3 #
- Updated dependencies.
- Amended
README.md.
0.0.2 #
- Amended package description.
- Formated files.
- Amended tags.
0.0.1 #
- Initial version