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
,
CollectionElement
,
Copyable
,
Movable
Methods
mean
mean(self: Self, unit: String = "s") -> SIMD[float64, 1]
Returns the average duration of the batch.
Args:
- unit (
String
): The time unit to display for example: ns, ms, s (defaults
).
Returns:
The average duration of the batch.