These test scripts demonstrate the step-by-step speed ups that the various ccache
s provide.
Scripted test sequence:
- Start a build w/totally empty cache(s).
- Rebuild the same target with the now populated cache(s).
- Change to a new target and get some speedup via the populated cache(s).
- Rebuild that target to get the full speedup.
- ...repeat for the remaining two targets.
The first script is for a SeedSigner OS builder that only has the built-in BuildRoot ccache
.
The second script is for a SeedSigner OS builder with the new additional "external" ccache
.
To run these in the Docker container, you'll need to first add:
# Need the version of `time` that can write to a file
apt install time
And when running the first script in a SeedSigner OS Docker image that only has the BuildRoot internal ccache, you'll need to explictly add ccache
to get the cache clearing and stat reporting:
apt install ccache