Module benchmarks

Source
Expand description

Benchmarking support

Benchmarks are split up into two parts: the functions to be benchmarked live here, which the benchmarking code itself lives in benches/bench.rs. It’s easier to write benchmarking code inside the main crate, where we have access to private items. However, it’s easier to integrate with Cargo and criterion if benchmarks live in a separate crate.

All benchmarks are defined as structs that implement either the Benchmark or BenchmarkWithInput

Modules§

client
geoname
ingest
query

Traits§

Benchmark
Trait for simple benchmarks
BenchmarkWithInput
Trait for benchmarks that require input

Functions§

cleanup
Cleanup the temp directory created for SuggestStore instances used in the benchmarks.