Crate pew [] [src]

Macros

pew_main

Generates the main method that runs the actual benchmarks.

Structs

State

This is the benchmark state. At a high level, it allows one to pause the timer and also access an argument for this run of the benchmark.

Functions

clobber

This method forces the compiler to not optimize writes to memory in a benchmark.

do_not_optimize

This method forces the compiler to not optimize the return statement of a benchmark.

run_benchmark_gen

This is not intended to be used by the user. It should just be called by pew_main!.

run_benchmark_range

This is not intended to be used by the user. It should just be called by pew_main!.