Spec-Zone.ru › Pony

AsyncMicroBenchmark

[Source]

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.

trait iso AsyncMicroBenchmark

Public Functions

name

[Source]

fun box name()
: String val

Returns

  • String val

config

[Source]

fun box config()
: BenchConfig val

Returns

  • BenchConfig val

overhead

[Source]

fun box overhead()
: AsyncMicroBenchmark iso^

Returns

  • AsyncMicroBenchmark iso^

before

[Source]

fun ref before(
  c: AsyncBenchContinue val)
: None val

Parameters

  • c: AsyncBenchContinue val

Returns

  • None val

before_iteration

[Source]

fun ref before_iteration(
  c: AsyncBenchContinue val)
: None val

Parameters

  • c: AsyncBenchContinue val

Returns

  • None val

apply

[Source]

fun ref apply(
  c: AsyncBenchContinue val)
: None val ?

Parameters

  • c: AsyncBenchContinue val

Returns

  • None val ?

after

[Source]

fun ref after(
  c: AsyncBenchContinue val)
: None val

Parameters

  • c: AsyncBenchContinue val

Returns

  • None val

after_iteration

[Source]

fun ref after_iteration(
  c: AsyncBenchContinue val)
: None val

Parameters

  • c: AsyncBenchContinue val

Returns

  • None val

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/ponybench-AsyncMicroBenchmark

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API