Skip to content

Commit 402ccc7

Browse files
committed
Addded change info.
1 parent 4726d01 commit 402ccc7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
## 2.0.0
22
Breaking changes:
3+
- The functions `benchmark` and `asyncBenchmark` are not longer generic and now
4+
have the optional parameters: `warmUpDuration`, `sampleSize`, `customEmitter`.
35
- The classes `Benchmark` and `AsyncBenchmark` were renamed `ScoreGenerator`
4-
and `AsyncScoreGenerator`,respectively, They are now solely responsible for
5-
generating benchmark scores. The constructor parameters `description` and
6-
`emitter` have been removed. Generating the benchmark reports
6+
and `AsyncScoreGenerator`,respectively,
7+
They no longer inherit from `BenchmarkBase` and `AsyncBenchmarkBase` and are
8+
now solely responsible for
9+
generating benchmark scores. As such, the constructor parameters `description` and
10+
`emitter` have been removed.
11+
- Generating the benchmark reports
712
is delegated to `ScoreEmitter`.
8-
- The functions `benchmark` and `asyncBenchmark` are not longer generic and now
9-
have the optional parameters: `warmUpDuration`, `warmUpRuns`.
10-
`sampleSize`, `customEmitter`.
13+
- The function `sampleSize` now returns an object of type `SampleSize` instead
14+
of a record.
15+
- The default score emitter is now `StatsEmitter`. To emit a report that is
16+
similar to that printed by `benchmark_harness` use `MeanEmitter`.
1117

1218
## 1.0.0
1319
Breaking changes:

0 commit comments

Comments
 (0)