Commit e5253f1
[analyzer] Stable analysis tool
Tool the - in my testing at least - is very stable in terms of
instruction counts used as reported by `perf stat`.
Only requires small changes to the analyzer and doesn't affect the part
that's covered by api.txt.
Running it on an extracted dill (with an aot-compiled tool) I get numbers like
this:
```
perf stat -e task-clock:u,cycles:u,instructions:u,branch-misses:u -r3 out/ReleaseX64/dart-sdk/bin/dartaotruntime --deterministic pkg/analyzer/tool/stable_analysis.aot /tmp/extracted_compile_dart_compile
```
```
[...]
50,853,198,745 instructions:u # 1.18 insn per cycle ( +- 0.00% )
[...]
```
Running it 10 times (without `-r3`) I get this:
```
50,853,237,614 instructions:u # 1.18 insn per cycle
50,853,477,778 instructions:u # 1.19 insn per cycle
50,852,534,741 instructions:u # 1.17 insn per cycle
50,852,728,437 instructions:u # 1.18 insn per cycle
50,853,298,284 instructions:u # 1.18 insn per cycle
50,853,151,431 instructions:u # 1.17 insn per cycle
50,853,754,852 instructions:u # 1.18 insn per cycle
50,852,509,185 instructions:u # 1.17 insn per cycle
50,853,878,495 instructions:u # 1.18 insn per cycle
50,853,437,912 instructions:u # 1.18 insn per cycle
```
where the difference between the smallest and the largest number is <0.0027%
Change-Id: I84d616201520a50904854cac06958faf6330468b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/449760
Reviewed-by: Johnni Winther <[email protected]>
Commit-Queue: Jens Johansen <[email protected]>1 parent 3b7cd31 commit e5253f1
File tree
2 files changed
+113
-3
lines changed- pkg/analyzer
- lib/src/dart/analysis
- tool
2 files changed
+113
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
592 | 601 | | |
593 | 602 | | |
594 | 603 | | |
| |||
1307 | 1316 | | |
1308 | 1317 | | |
1309 | 1318 | | |
1310 | | - | |
| 1319 | + | |
1311 | 1320 | | |
1312 | 1321 | | |
1313 | 1322 | | |
| |||
1331 | 1340 | | |
1332 | 1341 | | |
1333 | 1342 | | |
1334 | | - | |
| 1343 | + | |
1335 | 1344 | | |
1336 | 1345 | | |
1337 | 1346 | | |
| |||
1491 | 1500 | | |
1492 | 1501 | | |
1493 | 1502 | | |
1494 | | - | |
| 1503 | + | |
1495 | 1504 | | |
1496 | 1505 | | |
1497 | 1506 | | |
| |||
1522 | 1531 | | |
1523 | 1532 | | |
1524 | 1533 | | |
| 1534 | + | |
| 1535 | + | |
1525 | 1536 | | |
1526 | 1537 | | |
1527 | 1538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments