rcmake and CMake 4.5.1 benchmark results
rcmake v0.2.2 ran faster than CMake 4.5.1 in all 40 measured workloads, with speedups of 1.03x to 13.15x. The highest result was for -E tar cf. Across the five large C++ projects the geometric means were 1.25x cold, 1.72x with a warm probe cache, and 1.50x after a leaf edit.
Method and source data
The release benchmark ran on an Apple M1 with 16 GiB of memory against pinned CMake 4.5.1. The frozen rcmake source commit is 0e9111c5887f. The evaluation and configure lanes used 5 measured runs per case. The large-project lane used 3. Configure runs used Ninja.
Speedup is the CMake median time divided by the rcmake median time. The tables show median wall time in milliseconds and peak resident set size (RSS) in mebibytes. Values are shown to two decimal places. The largest reported peak across the large-project runs was 377.30 MiB for rcmake and 376.91 MiB for CMake.
The release scorecard JSON contains the large-project results. The evaluation and configure results JSON contains the other rows, transcribed from the frozen benchmark receipts.
Set up the compiler, Ninja, and pinned CMake binary as described in the build and measurement write-up. Run the benchmark lanes with scripts/reproduce-scorecard.sh from the frozen source checkout.
source env/env.sh
scripts/reproduce-scorecard.sh --lane bench-eval --lane bench-configure --lane bench-giants
Evaluation and tools
These workloads cover script evaluation, archive and file commands, synthetic projects, and cold configure for zlib, fmt, and nlohmann/json.
| Workload | rcmake (ms) | CMake 4.5.1 (ms) | Speedup | rcmake peak RSS (MiB) | CMake peak RSS (MiB) |
|---|---|---|---|---|---|
| -P var-expansion | 27.36 | 49.74 | 1.82x | 4.20 | 11.00 |
| -P lists | 21.51 | 75.52 | 3.51x | 5.40 | 12.50 |
| -P foreach-while | 28.98 | 72.67 | 2.51x | 4.20 | 11.60 |
| -P regex | 14.80 | 49.01 | 3.31x | 5.10 | 11.20 |
| -P string-json | 94.36 | 268.12 | 2.84x | 5.20 | 12.20 |
| -P math | 30.04 | 113.04 | 3.76x | 4.30 | 11.30 |
| -P function-calls | 35.44 | 86.21 | 2.43x | 4.50 | 10.90 |
| -E tar cf (tar) | 62.21 | 817.80 | 13.15x | 14.90 | 10.00 |
| -E tar czf (tgz) | 69.63 | 854.17 | 12.27x | 5.00 | 10.30 |
| -E tar xf (tar) | 187.02 | 229.62 | 1.23x | 7.80 | 10.30 |
| -E tar xf (tgz) | 204.85 | 211.32 | 1.03x | 7.90 | 10.40 |
| -E sha256sum (64 MiB) | 42.28 | 227.90 | 5.39x | 3.30 | 9.30 |
| -E copy_directory | 252.92 | 328.91 | 1.30x | 3.60 | 9.40 |
| configure 100 targets (cold) | 429.25 | 518.03 | 1.21x | 38.90 | 36.00 |
| configure 100 targets (warm) | 89.47 | 171.48 | 1.92x | 24.50 | 22.70 |
| configure 500 targets (cold) | 1288.17 | 2881.54 | 2.24x | 142.20 | 116.20 |
| configure 500 targets (warm) | 933.70 | 2469.96 | 2.65x | 131.60 | 114.20 |
| corpus zlib 1.3.1 (cold) | 847.54 | 1129.66 | 1.33x | 46.60 | 35.90 |
| corpus fmt 11.2.0 (cold) | 805.55 | 944.92 | 1.17x | 42.60 | 38.20 |
| corpus nlohmann/json 3.12.0 (cold) | 441.89 | 591.61 | 1.34x | 38.80 | 38.00 |
Probe cache and configure replay
Warm-probe runs start from a new build tree. Leaf-edit runs change one directory script in an existing tree. In warm-fetch, rcmake reads cached content with the origins hidden and CMake fetches with the origins visible.
| Workload | rcmake (ms) | CMake 4.5.1 (ms) | Speedup | rcmake peak RSS (MiB) | CMake peak RSS (MiB) |
|---|---|---|---|---|---|
| synthetic (cold configure) | 2935.59 | 3917.22 | 1.33x | 40.16 | 36.36 |
| synthetic (warm probe-cache configure) | 522.36 | 3738.91 | 7.16x | 35.80 | 35.95 |
| synthetic (incremental-leaf) | 61.46 | 137.90 | 2.24x | 24.20 | 21.20 |
| Local FetchContent (cold FetchContent configure) | 332.29 | 418.90 | 1.26x | 26.86 | 26.86 |
| Local FetchContent (warm-fetch) | 180.35 | 312.62 | 1.73x | 17.34 | 16.36 |
Large C++ projects
Cold runs start with a fresh build tree and an empty probe cache. Warm-probe runs start with a fresh tree and reuse the rcmake probe cache. Leaf-edit runs measure reconfigure after a change to one CMakeLists.txt file.
| Workload | rcmake (ms) | CMake 4.5.1 (ms) | Speedup | rcmake peak RSS (MiB) | CMake peak RSS (MiB) |
|---|---|---|---|---|---|
| DuckDB v1.3.2 (Cold) | 1526.78 | 1828.51 | 1.20x | 98.67 | 71.14 |
| DuckDB v1.3.2 (Warm probe cache) | 1186.69 | 1802.78 | 1.52x | 91.72 | 71.11 |
| DuckDB v1.3.2 (Leaf edit) | 605.21 | 904.82 | 1.50x | 85.81 | 67.31 |
| OpenCV 4.12.0 (Cold) | 17748.85 | 25936.95 | 1.46x | 179.56 | 179.45 |
| OpenCV 4.12.0 (Warm probe cache) | 17717.30 | 26030.75 | 1.47x | 179.53 | 179.52 |
| OpenCV 4.12.0 (Leaf edit) | 1511.07 | 3125.56 | 2.07x | 179.36 | 179.36 |
| Protobuf v36.2 (Cold) | 1247.15 | 1526.05 | 1.22x | 61.69 | 43.73 |
| Protobuf v36.2 (Warm probe cache) | 736.29 | 1529.35 | 2.08x | 59.88 | 43.73 |
| Protobuf v36.2 (Leaf edit) | 240.35 | 310.11 | 1.29x | 40.38 | 24.55 |
| Qt Base v6.8.3 (Cold) | 19254.19 | 23268.84 | 1.21x | 289.30 | 244.05 |
| Qt Base v6.8.3 (Warm probe cache) | 13351.79 | 23315.30 | 1.75x | 260.52 | 254.95 |
| Qt Base v6.8.3 (Leaf edit) | 7723.51 | 11146.68 | 1.44x | 266.64 | 245.50 |
| LLVM llvmorg-20.1.8 (Cold) | 18779.52 | 22529.81 | 1.20x | 377.30 | 376.41 |
| LLVM llvmorg-20.1.8 (Warm probe cache) | 12004.81 | 21924.93 | 1.83x | 329.25 | 376.91 |
| LLVM llvmorg-20.1.8 (Leaf edit) | 4466.56 | 5869.92 | 1.31x | 356.39 | 366.98 |
See how to reuse the probe cache in your own build.