Skip to content
Myr

benchmark.rs: Don't use # in benchmark name

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Using `Benchmark #1` causes github and gitlab to interrupt hyperfine results as link to issue #1. Remove the # from the benchmark number to play better with these systems. Fixes #381.

authored by Nir Soffer · committed by David Peter · parent 63c8dd1 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/hyperfine/benchmark.rs+1 added-1 removed
217 unmodified lines
218219 if options.output_style != OutputStyleOption::Disabled {220 println!(221 "{}{}: {}",222 "Benchmark #".bold(),222 "Benchmark ".bold(),223 (num + 1).to_string().bold(),224 &command_name225 );226 }
220 unmodified lines