Commit 5d0005e
committed
Move prepareForNextIteration call from Benchmark's runnerCode to preIterationCode
This makes it easier for Benchmark subclasses to also call. This fixes a bug in #74
which caused inspector code load benchmarks to not set up properly ending the benchmark in 0ms.
Also, use optional chaining for the call (and few other similar optional helpers).1 parent df99e62 commit 5d0005e
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | 653 | | |
657 | 654 | | |
658 | 655 | | |
| |||
668 | 665 | | |
669 | 666 | | |
670 | 667 | | |
671 | | - | |
672 | | - | |
| 668 | + | |
673 | 669 | | |
674 | 670 | | |
675 | 671 | | |
| |||
684 | 680 | | |
685 | 681 | | |
686 | 682 | | |
687 | | - | |
| 683 | + | |
688 | 684 | | |
689 | 685 | | |
690 | 686 | | |
| |||
1185 | 1181 | | |
1186 | 1182 | | |
1187 | 1183 | | |
1188 | | - | |
1189 | | - | |
| 1184 | + | |
1190 | 1185 | | |
1191 | 1186 | | |
1192 | 1187 | | |
| |||
1206 | 1201 | | |
1207 | 1202 | | |
1208 | 1203 | | |
1209 | | - | |
1210 | | - | |
| 1204 | + | |
1211 | 1205 | | |
1212 | 1206 | | |
1213 | 1207 | | |
| |||
0 commit comments