Crate glassbench[][src]

A micro-benchmarking crate with memory.

Preliminary version.

See README for an introduction.

Macros

glassbench

Generates a benchmark with a consistent id (using the benchmark file title), calling the benchmarking function given in argument.

Structs

Bench

A whole benchmark.

Command
Db

Storage interface for Glassbench, wrapping a SQLite connection.

GitInfo
HistoryGraph
HistoryTbl
Printer
Report
TaskBench

benching of one task

TaskBenchDiff
TaskHistory
TaskMeasure
TaskRecord

Enums

GlassBenchError

glassbench error type

Constants

ESTIMATE_ITERATIONS
MINIMAL_ITERATIONS
OPTIMAL_DURATION_NS
VERSION
WARMUP_ITERATIONS

Functions

after_bench
create_bench
pretend_used

tell the compiler not to optimize away the given argument (which is expected to be the function call you want to benchmark).