Module microbench

Source
Expand description

Microbenchmark utilities.

Structs§

DefaultMicroBenchConfig
Default setting
MicroBenchImpl
Local state for microbenchmark.
MicroBenchState
Static state for microbenchmark.
PathBenchBranch
Local state for path bench.
PathBenchScope
End-of-Scope handler for path bench
PathBenchState
Static state for path bench.

Constants§

DEFAULT_PRINT_INTERVAL
Default print interval is 10 GHz TSC. It is about 3~4 sec for modern CPUs.
DEFAULT_TIMESTAMP_FUNC
Default timestamp function to use. Current default is RDTSC.

Traits§

MicroBenchConfig
Choose RDTSC variant to use.

Functions§

touch_path_branch
Create a local path bench state