Add header to optimizations section
This commit is contained in:
parent
bd3cf4c05f
commit
20fa7cbfc0
1 changed files with 2 additions and 0 deletions
|
|
@ -503,6 +503,8 @@ Advice on writing benchmarks:
|
|||
* Make the code in the `iter` loop do something simple, to assist in pinpointing
|
||||
performance improvements (or regressions)
|
||||
|
||||
## Gotcha: optimizations
|
||||
|
||||
There's another tricky part to writing benchmarks: benchmarks compiled with
|
||||
optimizations activated can be dramatically changed by the optimizer so that
|
||||
the benchmark is no longer benchmarking what one expects. For example, the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue