benchmark_runner 2.0.1
benchmark_runner: ^2.0.1 copied to clipboard
A library for writing inline micro-benchmarks, running sync/async benchmarks, reporting and exporting score statistics.
2.0.1 #
- Simplified methods
measure
andmeasureAsync
. - Added
README.md
to foldergnuplot
.
2.0.0 #
Breaking changes:
- The functions
benchmark
andasyncBenchmark
are not longer generic and now have the optional parameters:warmUpDuration
,sampleSize
,customEmitter
. - The classes
Benchmark
andAsyncBenchmark
were renamedScoreGenerator
andAsyncScoreGenerator
,respectively, They no longer inherit fromBenchmarkBase
andAsyncBenchmarkBase
and are now solely responsible for generating benchmark scores. As such, the constructor parametersdescription
andemitter
have been removed. - Generating the benchmark reports
is delegated to
ScoreEmitter
. - The function
sampleSize
now returns an object of typeSampleSize
instead of a record. - The default score emitter is now
StatsEmitter
. To emit a report that is similar to that printed bybenchmark_harness
useMeanEmitter
.
1.0.0 #
Breaking changes:
- The command
benchmark_runner
now has subcommandsreport
andexport
. - The functions
benchmark
andasyncBenchmark
are now generic and accept the optional parameters:E extents ColorPrintEmitter emitter
,report(instance, emitter){}
, whereinstance
is an instance ofBenchmark
orAsyncBenchmark
, 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
blockHistogram
that surfaced when the inter-quartile-rangeiqr
of 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
. ColorEmitter
now 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