- Updated dependencies.
- Applied suggested lints.
- Simplified methods
measureandmeasureAsync. - Added
README.mdto foldergnuplot.
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.
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.
- Changed default encoding of standard output of benchmark processes
to
Utf8Codec(). This enables the correct output of histograms in windows terminals with utf8 support.
- Updated docs.
- Amended error reporting.
- Formatted executable.
- Fixed bug in function
blockHistogramthat surfaced when the inter-quartile-rangeiqrof the score sample is zero. - Made benchmark report more compact.
- Format.
- Amended link in docs.
- 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.
- Fixed bugs in runner (results were listed twice, exit code was always 0).
- Added progress indicator to output generated by
benchmark_runner. - Results are now printed as soon as the individual process returns.
- Amended all links referencing the API documentation. (/doc/api -> /latest).
- Added extension
BenchmarkHelper. - Improved calculation of sample size.
- Extended docs, added image.
- Added class
Score.
- Added tests for class
Stats. ColorEmitternow scales benchmark score stats (that are larger than 1000 us).- Added class
Score.
- Updated dependencies.
- Updated dependencies.
- Amended
README.md.
- Amended package description.
- Formated files.
- Amended tags.
- Initial version