async_benchmark 1.1.1
async_benchmark: ^1.1.1 copied to clipboard
A Dart package for running and analyzing benchmarks with support for isolated environments and performance tracking.
1.1.1 #
-
benchmark/BenchmarkExtension.run/IterableBenchmarkExtension.runAll:- Fixed: when a
joborteardownthrows, the benchmark'sshutdownis now called before the error is rethrown, so its resources are released. WithsetupOnIsolate: truethe setupIsolatewas left running and the program never exited. The original error is the one reported, even ifshutdownalso throws.
- Fixed: when a
-
_BenchmarkOnIsolate:- Fixed: the setup
Isolateis stopped even if the caller'sshutdownthrows (the program never exited). - Fixed: a benchmark that can't be sent to an
Isolatenow fails with theIsolate.spawnerror without leaving itsReceivePorts open (the program never exited). - Fixed: a setup value that is a
SendPort(e.g. to reach a service living on the setupIsolate) was mistaken for the isolate's own port, and the benchmark hung forever. The port and the setup value are now sent together.
- Fixed: the setup
-
Tests:
- Edge values of
BenchmarkRoundResult(zero interactions, zero duration, formatting thresholds) and of profiles (zero/negative counts, zero rounds). - The verbose reports of
runandrunAllasserted line by line. - Seeded shuffles, errors in the middle of a run, concurrent runs, and
setupOnIsolatewith a service holding a port on theIsolate. - Integration: an end-to-end verbose
runAlland the error paths ofsetupOnIsolaterun as separate processes, which must exit on their own.
- Edge values of
1.1.0 #
-
_BenchmarkOnIsolate:- Fixed: close the caller's
ReceivePortwhen the setupIsolatestops. A program that ran a benchmark withsetupOnIsolate: truenever exited. - Fixed: an error thrown by
setuporshutdownon theIsolateis now reported as aRemoteErrorinstead of hanging forever.
- Fixed: close the caller's
-
BenchmarkExtension.run:- Added parameter
shutdownIsolateDelay(as inrunAll). - Parameter
verboseis now typed asbool(wasdynamic).
- Added parameter
-
Tests: cover the whole public API and the
setupOnIsolatepath. -
Dart CI:
actions/checkout@v7,codecov/codecov-action@v7; run the tests on the minimum SDK (3.13.0) and on stable. -
sdk: ^3.13.0
-
lints: ^6.1.0
-
test: ^1.33.0
-
dependency_validator: ^5.1.0
1.0.3 #
-
BenchmarkProfile:- Added
copyWith.
- Added
-
test: ^1.25.12
-
dependency_validator: ^4.1.2
1.0.2 #
IterableBenchmarkExtension:runAll: added parametersinteractionDelay,shuffle,shuffleSeed.
1.0.1 #
_BenchmarkOnIsolate:- Added optional field
shutdownIsolateDelay. - Ensure that the
Isolatecloses itsreceivePort.
- Added optional field
1.0.0 #
- Initial version.