We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd3cf4c commit 20fa7cbCopy full SHA for 20fa7cb
src/doc/guide-testing.md
@@ -503,6 +503,8 @@ Advice on writing benchmarks:
503
* Make the code in the `iter` loop do something simple, to assist in pinpointing
504
performance improvements (or regressions)
505
506
+## Gotcha: optimizations
507
+
508
There's another tricky part to writing benchmarks: benchmarks compiled with
509
optimizations activated can be dramatically changed by the optimizer so that
510
the benchmark is no longer benchmarking what one expects. For example, the
0 commit comments