Mojo struct
Batch
@register_passable(trivial)
struct Batch
A batch of benchmarks, the benchmark.run() function works out how many iterations to run in each batch based the how long the previous iterations took.
Fields
- duration (
Int): Total duration of batch stored as nanoseconds. - iterations (
Int): Total iterations in the batch.
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable
comptime members
__copyinit__is_trivial
comptime __copyinit__is_trivial = True
__del__is_trivial
comptime __del__is_trivial = True
__moveinit__is_trivial
comptime __moveinit__is_trivial = True
Methods
mean
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!