Wefti

Wefti and CMake 4.5.1 benchmark results

37 / 40
Matched workloads faster
2.21x
Large projects, warm probe cache
138.17x
500-target repeat configure

Wefti v0.4.0 was faster than CMake 4.5.1 in 37 of 40 matched workloads on an Apple M1. Across five large C++ projects, the geometric mean speedup was 1.31x on cold runs, 2.21x with a warm probe cache, and 2.24x after a leaf edit.

Configure time on Apple M1

DuckDB had the largest leaf edit speedup at 5.44x. For LLVM, the speedup was 1.20x on a cold run, 1.69x with a warm probe cache, and 1.90x after a leaf edit. The -P string-json workload had a 2.42x speedup.

The 500-target repeat configure took 17.20 ms with Wefti and 2,376.55 ms with CMake (138.17x). This test reused the same build tree. The warm probe-cache run below uses a fresh build tree.

Synthetic configure on Apple M1 with Wefti v0.4.0
ScenarioWefti median (ms)CMake 4.5.1 median (ms)CMake time / Wefti time
Cold2,896.73,539.61.22x
New build tree with a warm probe cache468.33,417.67.30x
Leaf edit58.3136.12.34x

Get the frozen evaluation and configure data and the complete matched results. Use the configure measurement procedure on your project. See the compatibility report for output comparisons.

All 40 workload results

Evaluation and tools

Evaluation and tools (bench-eval)
WorkloadWefti median (ms)CMake 4.5.1 median (ms)SpeedupWefti peak RSS (MiB)CMake peak RSS (MiB)
-P var-expansion27.3343.591.59x5.6011.10
-P lists22.6175.923.36x6.7012.40
-P foreach-while29.7664.322.16x5.6011.70
-P regex16.8743.772.59x6.4011.20
-P string-json100.29242.762.42x6.7012.10
-P math31.68106.303.36x5.7011.40
-P function-calls35.7576.202.13x5.9011.00
-E tar cf (tar)64.67814.5512.60x15.309.90
-E tar czf (tgz)82.51826.0510.01x5.6010.20
-E tar xf (tar)131.40220.091.67x8.809.90
-E tar xf (tgz)135.28209.951.55x9.0010.10
-E sha256sum (64 MiB)41.88220.635.27x3.809.30
-E copy_directory252.28357.601.42x4.109.30
configure 100 targets (cold)449.38445.230.99x36.0035.90
configure 100 targets (warm)13.99159.1111.37x10.3022.60
configure 500 targets (cold)1865.902676.511.43x146.20112.80
configure 500 targets (warm)17.202376.55138.17x10.50113.30
corpus zlib 1.3.1 (cold)746.251011.601.36x41.5035.90
corpus fmt 11.2.0 (cold)744.43804.491.08x38.0037.90
corpus nlohmann/json 3.12.0 (cold)448.22435.270.97x37.8037.90
Evaluation speedups by category
CategoryWorkloadsGeometric mean speedup
script72.44x
tool63.67x
project46.87x
corpus31.12x

Probe cache and configure replay

Configure scenarios (bench-configure)
WorkloadWefti median (ms)CMake 4.5.1 median (ms)SpeedupWefti peak RSS (MiB)CMake peak RSS (MiB)
synthetic (cold configure)2896.723539.581.22x36.8636.23
synthetic (warm probe-cache configure)468.313417.557.30x35.8436.09
synthetic (incremental-leaf)58.26136.052.34x21.0921.11
Local FetchContent (cold FetchContent configure)294.55353.171.20x27.0527.05
Local FetchContent (warm-fetch)148.50254.951.72x19.2715.73

Large C++ projects

Large project configure runs (bench-giants)
WorkloadWefti median (ms)CMake 4.5.1 median (ms)SpeedupWefti peak RSS (MiB)CMake peak RSS (MiB)
DuckDB v1.3.2 (Cold)1902.092894.611.52x61.5566.73
DuckDB v1.3.2 (Warm probe cache)1374.033258.392.37x56.2066.73
DuckDB v1.3.2 (Leaf edit)413.442248.505.44x49.0562.55
OpenCV 4.12.0 (Cold)14191.6624736.211.74x180.16179.41
OpenCV 4.12.0 (Warm probe cache)5854.6622568.793.85x179.38179.39
OpenCV 4.12.0 (Leaf edit)1440.531634.911.13x179.41179.80
Protobuf v36.2 (Cold)1234.141217.200.99x52.1943.70
Protobuf v36.2 (Warm probe cache)566.871231.782.17x49.1743.78
Protobuf v36.2 (Leaf edit)110.40215.191.95x37.1723.27
Qt Base v6.8.3 (Cold)17279.4721421.151.24x223.64240.30
Qt Base v6.8.3 (Warm probe cache)13314.2621039.571.58x213.69237.81
Qt Base v6.8.3 (Leaf edit)4111.1410138.752.47x206.00228.09
LLVM llvmorg-20.1.8 (Cold)17411.9120859.071.20x341.05391.14
LLVM llvmorg-20.1.8 (Warm probe cache)12351.0420838.531.69x337.39390.98
LLVM llvmorg-20.1.8 (Leaf edit)3158.586003.051.90x310.39381.05

All five large projects passed. The highest leaf edit p95 for Wefti was 8,667.28 ms on Qt Base.

The highest peak RSS across the cold and warm runs was 341.05 MiB for Wefti and 391.14 MiB for CMake. This measure includes child processes that the benchmark waits for, such as compiler probes. The highest sampled peak RSS for the direct process was 273.89 MiB for Wefti and 325.74 MiB for CMake.

Large project probe cache and memory
ProjectProbe cache entriesWefti leaf edit p95 (ms)Wefti peak RSS (MiB)CMake peak RSS (MiB)Wefti self peak RSS (MiB)CMake self peak RSS (MiB)Status
DuckDB v1.3.23 entries (+0)668.5761.5566.7348.8956.02pass
OpenCV 4.12.0124 entries (+0)2385.86180.16179.4178.7328.61pass
Protobuf v36.2130 entries (+0)284.2252.1943.7839.6715.95pass
Qt Base v6.8.3192 entries (+0)8667.28223.64240.30184.50229.27pass
LLVM llvmorg-20.1.8276 entries (+0)7985.62341.05391.14273.89325.74pass
Peer build tool results

Wefti had a lower median time than CMake in all six peer configure cases. This includes cold, warm, and leaf edit runs at both target counts.

Muon implements the Meson language in C. Muon was faster than Wefti after a leaf edit at both target counts. At 100 targets, Muon took 49.5 ms and Wefti took 62.1 ms. At 500 targets, Muon took 210.8 ms and Wefti took 219.6 ms.

The Wefti executable was 17.50 MiB (18,352,560 bytes). This was 0.89 MiB smaller than the v0.3.1 executable (18.39 MiB, 19,286,032 bytes). The Wefti install was 25.74 MiB. The CMake install was 250.62 MiB.

Times are median / p95 in milliseconds over five runs. The leaf edit changes a compiler definition. Each available tool generates Ninja files. Only Wefti and CMake read CMakeLists.txt. Premake5 generates files without probing the compiler. Cold runs start with an empty build directory and empty user caches. Warm runs start with an empty build directory and keep the user caches from an earlier run. Peak RSS is the highest memory use of any single process during a cold configure. This can be a compiler process. Install size excludes Ninja and the compiler. GN was unavailable.

Peer benchmark for 100 targets
ToolVersionReads CMakeLists.txtCold (ms)Warm (ms)Leaf edit (ms)Peak RSS (MiB)Binary (MiB)Install (MiB)
Wefti0.4.0yes637.2 / 727.2277.3 / 311.862.1 / 67.337.917.5025.74
CMake4.5.1yes646.3 / 713.2604.4 / 646.5159.2 / 178.437.826.74250.62
Meson1.12.1no1174.2 / 1287.51198.6 / 1271.7414.3 / 432.150.15.6391.15
Muon0.7.1no230.9 / 349.5232.3 / 274.749.5 / 49.936.91.103.06
XMake3.1.2+20261016no1604.8 / 1726.81604.1 / 1609.11596.7 / 1609.244.80.687.92
Premake55.0.0no196.6 / 196.6195.6 / 199.3187.2 / 194.921.31.421.50
GNnot installednon/an/an/an/an/an/a
Peer benchmark for 500 targets
ToolVersionReads CMakeLists.txtCold (ms)Warm (ms)Leaf edit (ms)Peak RSS (MiB)Binary (MiB)Install (MiB)
Wefti0.4.0yes1109.1 / 1385.5789.3 / 876.0219.6 / 231.166.717.5025.74
CMake4.5.1yes1140.7 / 1220.91156.0 / 1219.1565.6 / 596.182.326.74250.62
Meson1.12.1no1650.8 / 1795.61644.9 / 1661.0829.8 / 865.864.55.6391.15
Muon0.7.1no423.0 / 505.4417.0 / 422.6210.8 / 225.637.11.103.06
XMake3.1.2+20261016no3516.7 / 3584.33484.0 / 3609.03483.9 / 3532.4105.00.687.92
Premake55.0.0no1044.8 / 1098.01049.8 / 1167.7952.3 / 966.261.21.421.50
GNnot installednon/an/an/an/an/an/a

Reproduce these results with python3 tools/measure/bench_alternatives.py --targets 100,500 --runs 5 --leaf-edit define.

Methodology

The release benchmark ran on an Apple M1 with 16 GiB of memory and macOS 27.0.1 (26A434) on AC power. The reference was CMake 4.5.1. The frozen Wefti source commit is a9c2289f20dd0cbb4bc6bca880a61e439b37cd8c. The binary SHA-256 is 7beab5799377c5d715f08ebcaaf59b57f22b4b5f9aa52c249e9dc4c6bb3be3a6.

The evaluation, configure, and peer suites used five measured runs per case. The evaluation suite also used one warm-up. The large-project suite used three measured runs per case. Configure runs used Ninja. In warm-fetch runs, Wefti reads cached content with the origins hidden and CMake fetches with the origins visible.

Speedup is the CMake median time divided by the Wefti median time. A speedup below 1.00x means Wefti was slower. Wall time is in milliseconds and peak resident set size (RSS) is in mebibytes (MiB). The 95th percentile (p95) is the slowest run in these small samples.

The synthetic leaf edit took 58.26 ms at the median and 58.60 ms at p95 with Wefti. The CMake median was 136.05 ms.

Download the evaluation and configure results as JSON.

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

Frequently asked questions

Is Wefti faster than CMake 4.5.1?

Wefti was faster in 37 of 40 matched workloads. Speedups ranged from 0.97x to 138.17x. Wefti took 0.9% longer on the 100-target cold configure (0.99x). It took 3.0% longer on the nlohmann/json cold configure (0.97x) and 1.4% longer on the Protobuf cold configure (0.99x).

How fast is Wefti on LLVM, OpenCV, Qt, DuckDB, and Protobuf?

Each set of speedups gives the cold configure, warm probe cache, and leaf edit results in that order. LLVM measured 1.20x, 1.69x, and 1.90x. OpenCV measured 1.74x, 3.85x, and 1.13x. Qt Base measured 1.24x, 1.58x, and 2.47x. DuckDB measured 1.52x, 2.37x, and 5.44x. Protobuf measured 0.99x, 2.17x, and 1.95x.

How does Wefti memory usage compare to CMake?

Wefti used less peak memory in 28 of 40 matched workloads and more in 11. Peak memory was the same in one workload. The matched 500-target cold configure used 146.20 MiB with Wefti and 112.80 MiB with CMake.

Why was the 500-target repeat configure faster with Wefti?

On an unchanged build tree, Wefti skips listfile evaluation and Ninja generation. The repeat configure took 17.20 ms with Wefti and 2,376.55 ms with CMake.

How do I reproduce the v0.4.0 benchmarks locally?

Check out commit a9c2289f20dd, run source env/env.sh and scripts/stage.sh, then run scripts/reproduce-scorecard.sh --lane bench-eval --lane bench-configure --lane bench-giants. The Methodology section lists the toolchain setup.