Crate trench [] [src]

A Benchmark runner.

fn simple_example(num_threads: usize) -> trench::BenchStats {
TODO:
}

We use this instead of rustc-test or bencher in order to make it exactly as we want it to behave, as we need very specific things to happen, in order to go around the thread cleanup problem.

Structs

BenchResult

The result of a benchmark run.

TimedBench

Functions

black_box

A black_box function, to avoid compiler optimizations.