glean/glean-core/benchmark
Beatriz Rizental c459dd5a6a
Bug 1657112 - Add rust docs guidelines to the book and fix some consistency issues in the current docs (#1162)
2020-08-21 16:46:22 +02:00
..
benches Bug 1657112 - Add rust docs guidelines to the book and fix some consistency issues in the current docs (#1162) 2020-08-21 16:46:22 +02:00
src Add a new crate for benchmarks 2020-02-04 09:57:47 +01:00
Cargo.toml Add a new crate for benchmarks 2020-02-04 09:57:47 +01:00
LICENSE Add a new crate for benchmarks 2020-02-04 09:57:47 +01:00
README.md Add a new crate for benchmarks 2020-02-04 09:57:47 +01:00

README.md

Glean Benchmarks

The Glean SDK is a modern approach for a Telemetry library and is part of the Glean project.

Benchmarks

This crates provides simple benchmarks for Glean, based on the criterion benchmark framework. The library itself does not contain additional code.

Available benchmarks

How to run the benchmarks

From the top-level directory of the repository run:

cargo bench -p benchmark

This is also available as a make task:

make bench-rust

Any additional run compares results to the preceding run.

Results

After running the benchmarks, an HTML-rendered report can be found in target/criterion/report/index.html. We do not provide any results here as the absolute numbers are unreliable. Benchmark timings across code changes are more important.

Why an additional crate?

This way we don't add any new (dev) dependencies to the crates that get released.