TL;DR: Apple M1 Pro is ~3x faster to build compared to i9-8950HK (Coffee Lake).
MacBook Pro (15-inch, 2018)
Processor: 2.9 GHz 6-Core Intel Core i9-8950HK CPU
Memory: 16 GB 2400 MHz DDR4
155.7s
Benchmark 1: CCACHE_DISABLE=1 ninja kv_engine/install
  Time (mean ± σ):     156.761 s ±  0.874 s    [User: 1551.067 s, System: 72.710 s]
  Range (min … max):   155.798 s … 157.506 s    3 runs 
MacBook Pro (16-inch, 2021) Chip: Apple M1 Pro Memory: 32 GB LPDDR5
49.2s
Benchmark 1: CCACHE_DISABLE=1 ninja kv_engine/install
  Time (mean ± σ):     49.214 s ±  2.318 s    [User: 394.197 s, System: 14.379 s]
  Range (min … max):   47.170 s … 51.733 s    3 runs
Note: Set CMAKE_APPLE_SILICON_PROCESSOR and CMAKE_OSX_ARCHITECTURES to x86_64 to always build for x86-64.
# Setup build environment
for pkg in ccache ninja hyperfine; do (brew install $pkg || brew upgrade $pkg); done
ccache -M 16G
# Fetch code and configure
repo init -u ssh://[email protected]/couchbase/manifest.git -m branch-master.xml -g enterprise,default
repo sync -j16
mkdir build && cd build
cmake -G Ninja -DCMAKE_APPLE_SILICON_PROCESSOR=x86_64 -DCMAKE_OSX_ARCHITECTURES=x86_64 \
    -DCMAKE_INSTALL_PREFIX=../install ..
hyperfine --runs 3 --prepare 'ninja -t clean kv_engine/install' \
    'CCACHE_DISABLE=1 ninja kv_engine/install'
Exact manifest used (output via
repo manifest -r: