Commit c339067
Create a copy of the sets vector in InsertMiss_Hot
The benchmark loop of the InsertMiss_Hot benchmark modifies the sets in the vector. Therefore, we need to make a copy. Otherwise, repeated calls to `InsertMiss_Hot` (e.g., if the `--benchmark_repetitions` flag is set to a value larger than 1) start with increasingly larger sets, and thus the runtime of the benchmark grows with each repetition.
PiperOrigin-RevId: 747418678
Change-Id: I3327d6bbd6b9cb148c45100985f21e6148c60ffd1 parent 9f444d0 commit c339067
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments