nxt.benchmark_ex

Extensions to std.datetime_ex.benchmark.

Members

Aliases

benchmarkAssociativeArray
alias benchmarkAssociativeArray = benchmarkMap
Undocumented in source.

Enums

Reserved
enum Reserved

Behavior or reservation of space for a specific implicit length/size/count.

Functions

benchmarkAppendable
Results benchmarkAppendable(Source testSource, size_t runCount)

Benchmark append operation available in type A with test source S.

benchmarkMap
Results benchmarkMap(Source testSource, size_t runCount)

Benchmark map (container) type A with test source S.

benchmarkSet
Results benchmarkSet(Source testSource, size_t runCount)

Benchmark set (container) type A with test source S.

iotaArrayOf
T[] iotaArrayOf(size_t begin, size_t end)
Undocumented in source. Be warned that the author may not have intended to support it.
makeWithRequestedCapacity
auto makeWithRequestedCapacity(size_t elementCount, Reserved wasReserved)

Make A and try setting its capacity to results.elementCount.

Static variables

formatNsPerOp
auto formatNsPerOp;

Formatting uses some extra space but should be removed when outputting to plots.

runCountDefault
auto runCountDefault;
Undocumented in source.
runCountDefault
auto runCountDefault;
Undocumented in source.

Structs

Results
struct Results
Undocumented in source.

Meta

Authors

TODO: Use ggplot or similar to visualize results.