[Infra] Fix version-check workflow (#100090)
[llvm-project.git] / third-party / benchmark / docs / random_interleaving.md
blobc083036841480796c0565ffa36c7e02bd32e06b2
1 <a name="interleaving" />
3 # Random Interleaving
5 [Random Interleaving](https://github.com/google/benchmark/issues/1051) is a
6 technique to lower run-to-run variance. It randomly interleaves repetitions of a
7 microbenchmark with repetitions from other microbenchmarks in the same benchmark
8 test. Data shows it is able to lower run-to-run variance by
9 [40%](https://github.com/google/benchmark/issues/1051) on average.
11 To use, you mainly need to set `--benchmark_enable_random_interleaving=true`,
12 and optionally specify non-zero repetition count `--benchmark_repetitions=9`
13 and optionally decrease the per-repetition time `--benchmark_min_time=0.1`.