Skip to main content

write_bench_gha_json

Function write_bench_gha_json 

Source
pub async fn write_bench_gha_json(
    path: &Path,
    reports: &[BenchReport],
) -> Result<()>
Expand description

Write the github-action-benchmark customSmallerIsBetter JSON.

Every measurement contributes its frame p95 and frame mean in microseconds, named <crate>/<bench>/<measurement> <metric>.

ยงErrors

Returns an error if the file cannot be written.