nxt.benchmark

Extensions to std.datetime.benchmark.

Members

Aliases

benchmarkAssociativeArray
alias benchmarkAssociativeArray = benchmarkMap
Undocumented in source.

Enums

ReserveSupport
enum ReserveSupport

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.

makeWithRequestedCapacity
auto makeWithRequestedCapacity(size_t elementCount, ReserveSupport reserveSupport)

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. TODO: Use nxt.sampling to generate test data.