AsyncMicroBenchmark¶
Asynchronous benchmarks must provide this trait. The apply
method defines a
single iteration in a sample. Each phase of the sample completes when the
given AsyncBenchContinue
has its complete
method invoked. Setup and
Teardown are defined by the before
and after
methods respectively. The
before
method runs before a sample of benchmarks and after
runs after
the all iterations in the sample have completed. If your benchmark requires
setup and/or teardown to occur beween each iteration of the benchmark, then
you can use before_iteration
and after_iteration
methods respectively
that run before/after each iteration.
Public Functions¶
name¶
Returns¶
- String val
config¶
Returns¶
- BenchConfig val
overhead¶
Returns¶
- AsyncMicroBenchmark iso^
before¶
Parameters¶
- c: AsyncBenchContinue val
Returns¶
- None val
before_iteration¶
Parameters¶
- c: AsyncBenchContinue val
Returns¶
- None val
apply¶
Parameters¶
- c: AsyncBenchContinue val
Returns¶
- None val ?
after¶
Parameters¶
- c: AsyncBenchContinue val
Returns¶
- None val
after_iteration¶
Parameters¶
- c: AsyncBenchContinue val
Returns¶
- None val