Commit 9560fc2
buildtest.py: Use ccache
Reduces the time to run `./buildtest.py` on my 8-core laptop from 25
minutes to 7 minutes.
```
# Before, without ccache
$ time ./buildtest.py
[...]
./buildtest.py 5844.08s user 755.75s system 434% cpu 25:17.99 total
# After, with ccache, empty cache.
$ time ./buildtest.py
[...]
./buildtest.py 1620.97s user 472.66s system 482% cpu 7:13.54 total
```
The `ccache -s` status after building once from an empty cache shows
just how much duplicated work is performed: 83.00% cache hits!
```
$ ccache -s
Cacheable calls: 12538 / 22769 (55.07%)
Hits: 10407 / 12538 (83.00%)
Direct: 9093 / 10407 (87.37%)
Preprocessed: 1314 / 10407 (12.63%)
Misses: 2131 / 12538 (17.00%)
Uncacheable calls: 10231 / 22769 (44.93%)
Local storage:
Cache size (GiB): 0.1 / 5.0 ( 1.97%)
Hits: 10407 / 12538 (83.00%)
Misses: 2131 / 12538 (17.00%)
```
Signed-off-by: Matt Turner <mattst88@gmail.com>1 parent 6546b00 commit 9560fc2
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | | - | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
0 commit comments