diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2014-12-15 13:51:04 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2014-12-27 06:11:13 -0500 |
| commit | 20fa7cbfc0b5143f6c88e288772fc0f65610c2ec (patch) | |
| tree | ee3a6302e26aff24ff847aa29da073ec84f27bb7 | |
| parent | bd3cf4c05fdec03ab22df27f33191f4851e18cc9 (diff) | |
| download | rust-20fa7cbfc0b5143f6c88e288772fc0f65610c2ec.tar.gz rust-20fa7cbfc0b5143f6c88e288772fc0f65610c2ec.zip | |
Add header to optimizations section
| -rw-r--r-- | src/doc/guide-testing.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/guide-testing.md b/src/doc/guide-testing.md index 682c89fcc53..60ce71dac84 100644 --- a/src/doc/guide-testing.md +++ b/src/doc/guide-testing.md @@ -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 |
