Skip to Content
marmot

The targets come from SPEC.md section 3c, marmot against go build on the same machine, in every mode. Size at most 0.8x, run time and CPU at least 1.2x faster. Peak RSS at most 0.7x and build time at most 0.8x. Ratios are per program: marmot/go for size, RSS and build, go/marmot for run time and CPU (so above 1 is faster). Medians per program, geomean across programs. A program passes a metric only when its own ratio meets the target.

Sources are the latest full bench runs: the Linux night run (main 961b5f85) and the Mac night run (bd3fa968), 45 programs each. Size compares unstripped with unstripped and stripped with go -ldflags="-s -w".

Summary

MetricLinux releaseLinux devMac releaseMac dev
size45/4541/4445/4545/45
size, stripped45/4531/4445/4545/45
run time22/452/4420/452/45
CPU21/454/4421/452/45
peak RSS1/160/1624/4521/45
build, cold27/4544/440/4545/45
build, warm26/4544/440/4545/45

Linux: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz, amd64, rev 961b5f85, 2026-11-17

Source: the Linux bench run of 2026-11-17. Load average at start: 5.64 3.71 4.48.

marmot-release

MetricTargetGeomeanPassMisses (worst first)
sizeat most 0.8x0.14x45/45none
size, strippedat most 0.8x0.21x45/45none
run timeat least 1.2x faster1.44x faster22/45deferloop 0.40, strconcat 0.78, fmtout 0.85, fmtlog 0.89, hellostd 0.91, sha256 0.91, parse 0.93, jsonenc 0.93, jsondec 0.94, fmtbuf 0.99, transpose 0.99, nbody 1.02, bintrees 1.04, quicksort 1.05, dot 1.06, wordfreq 1.06, mandelbrot 1.08, summinmax 1.10, bytecount 1.10, spectralnorm 1.10, heapsort 1.10, generic 1.10, fannkuch 1.11
CPUat least 1.2x faster1.43x faster21/45deferloop 0.40, workerpool 0.75, fmtout 0.85, sha256 0.91, fmtlog 0.92, jsonenc 0.92, strconcat 0.93, transpose 0.98, jsondec 1.00, fmtbuf 1.00, hellostd 1.00, sortslice 1.02, nbody 1.03, parse 1.03, quicksort 1.05, dot 1.06, mandelbrot 1.08, wordfreq 1.10, summinmax 1.10, bytecount 1.10, heapsort 1.10, spectralnorm 1.11, fannkuch 1.11, generic 1.11
peak RSSat most 0.7x0.97x1/16jsondec 2.12, sortslice 1.65, wordfreq 1.37, regexpbench 1.26, jsonenc 1.22, parse 1.15, mapstr 1.12, mapint 1.09, transpose 1.01, stringsearch 0.99, quicksort 0.97, heapsort 0.96, bintrees 0.95, matmul 0.95, generic 0.70 (29 programs not measured: RSS floor, see notes)
build, coldat most 0.8x0.91x27/45jsonenc 2.84, jsondec 2.69, regexpbench 1.81, sha256 1.61, wordfreq 1.53, sortslice 1.48, stringsearch 1.48, fmtout 1.45, fmtlog 1.41, parse 1.38, fmtbuf 1.34, hellostd 1.18, mapstruct 1.17, mapstr 0.92, mapint 0.86, spectralnorm 0.86, nbody 0.82, fannkuch 0.82
build, warmat most 0.8x0.84x26/45sha256 2.15, fmtbuf 1.17, fmtlog 1.12, jsonenc 1.04, fmtout 1.04, hellostd 1.04, sortslice 1.01, regexpbench 0.98, mapstruct 0.96, stringsearch 0.96, parse 0.94, structcopy 0.93, jsondec 0.90, generic 0.89, wordfreq 0.83, mapint 0.83, transpose 0.82, dot 0.81, stencil 0.80

marmot-dev

MetricTargetGeomeanPassMisses (worst first)
sizeat most 0.8x0.21x41/44regexpbench 0.81, jsonenc 0.80, jsondec 0.80
size, strippedat most 0.8x0.32x31/44regexpbench 1.23, jsonenc 1.22, jsondec 1.22, sha256 1.19, parse 1.19, wordfreq 1.18, stringsearch 1.18, sortslice 1.18, fmtbuf 1.18, mapstruct 1.18, fmtlog 1.17, fmtout 1.17, hellostd 1.17
run timeat least 1.2x faster0.41x faster2/44spectralnorm 0.10, deferloop 0.19, histogram 0.20, generic 0.20, prefixsum 0.21, saxpy 0.21, summinmax 0.23, conv 0.24, matmul 0.25, regexpbench 0.25, jsonenc 0.26, jsondec 0.26, strconcat 0.27, iface 0.27, fmtlog 0.28, bytecount 0.28, fmtbuf 0.29, fmtout 0.30, parse 0.30, dot 0.30, fannkuch 0.35, mandelbrot 0.39, wordfreq 0.39, closure 0.41, nbody 0.41, heapsort 0.44, structcopy 0.45, quicksort 0.49, transpose 0.53, sortslice 0.56, bits 0.58, mapstruct 0.59, mapint 0.66, selectpipe 0.68, mapstr 0.68, workerpool 0.70, fib 0.74, bintrees 0.78, nsieve 0.86, hellostd 0.87, sha256 0.91, pingpong 1.20
CPUat least 1.2x faster0.41x faster4/44spectralnorm 0.10, deferloop 0.19, histogram 0.19, prefixsum 0.21, saxpy 0.21, generic 0.21, workerpool 0.22, summinmax 0.23, conv 0.24, matmul 0.25, regexpbench 0.26, iface 0.27, jsonenc 0.28, bytecount 0.28, fmtlog 0.29, jsondec 0.29, fmtbuf 0.30, fmtout 0.30, dot 0.30, strconcat 0.32, parse 0.33, fannkuch 0.36, mandelbrot 0.39, wordfreq 0.41, closure 0.41, nbody 0.41, heapsort 0.44, structcopy 0.45, quicksort 0.49, sortslice 0.51, transpose 0.53, bits 0.58, mapstruct 0.60, selectpipe 0.63, mapint 0.66, mapstr 0.71, fib 0.74, nsieve 0.86, sha256 0.91, hellostd 0.93
peak RSSat most 0.7x1.21x0/16jsondec 3.02, sortslice 1.63, regexpbench 1.38, wordfreq 1.37, jsonenc 1.31, parse 1.19, nsieve 1.16, mapstr 1.16, mapint 1.09, stringsearch 1.07, bintrees 1.04, generic 1.00, transpose 0.98, quicksort 0.97, matmul 0.95, heapsort 0.94 (28 programs not measured: RSS floor, see notes)
build, coldat most 0.8x0.19x44/44none
build, warmat most 0.8x0.24x44/44none

Mac: Apple M3 Pro, arm64, rev bd3fa968, 2026-11-17

Source: the macOS bench run of 2026-11-17. Load average at start: 7.33 3.57 2.80.

marmot-release

MetricTargetGeomeanPassMisses (worst first)
sizeat most 0.8x0.15x45/45none
size, strippedat most 0.8x0.15x45/45none
run timeat least 1.2x faster1.55x faster20/45deferloop 0.77, sha256 0.88, mapstr 0.90, jsonenc 0.91, jsondec 0.92, fmtlog 0.98, dot 0.98, transpose 0.99, hello 1.00, spectralnorm 1.01, matmul 1.01, bintrees 1.02, fmtout 1.02, nbody 1.02, wordfreq 1.03, histogram 1.03, mandelbrot 1.03, hellostd 1.05, parse 1.08, fmtbuf 1.08, quicksort 1.10, fannkuch 1.10, regexpbench 1.12, heapsort 1.13, fib 1.16
CPUat least 1.2x faster1.57x faster21/45deferloop 0.77, sha256 0.88, jsonenc 0.92, mapstr 0.98, dot 0.98, transpose 0.99, fmtlog 0.99, spectralnorm 1.01, matmul 1.01, nbody 1.02, jsondec 1.02, fmtout 1.02, histogram 1.03, mandelbrot 1.03, wordfreq 1.05, hello 1.06, hellostd 1.08, fmtbuf 1.09, quicksort 1.10, fannkuch 1.10, heapsort 1.13, regexpbench 1.14, fib 1.16, parse 1.18
peak RSSat most 0.7x0.75x24/45jsondec 1.97, wordfreq 1.68, sortslice 1.65, deferloop 1.63, mapint 1.39, mapstr 1.31, sha256 1.29, regexpbench 1.20, jsonenc 1.03, fmtout 0.98, fmtlog 0.98, fmtbuf 0.98, parse 0.98, quicksort 0.98, heapsort 0.96, transpose 0.96, bintrees 0.88, matmul 0.87, stringsearch 0.87, mapstruct 0.78, stencil 0.72
build, coldat most 0.8x1.11x0/45jsonenc 2.95, jsondec 2.95, sha256 2.10, regexpbench 2.05, wordfreq 1.74, parse 1.73, sortslice 1.70, stringsearch 1.66, fmtout 1.66, fmtbuf 1.64, fmtlog 1.64, mapstruct 1.63, hellostd 1.61, mapstr 1.05, selectpipe 0.99, mapint 0.95, heapsort 0.91, histogram 0.90, dot 0.90, summinmax 0.90, bytecount 0.90, nsieve 0.90, structcopy 0.90, stencil 0.90, transpose 0.90, deferloop 0.89, conv 0.89, iface 0.89, generic 0.89, saxpy 0.89, prefixsum 0.89, closure 0.89, bits 0.89, fannkuch 0.89, matmul 0.88, nbody 0.88, quicksort 0.88, workerpool 0.88, pingpong 0.88, spectralnorm 0.87, bintrees 0.85, hello 0.83, mandelbrot 0.83, strconcat 0.82, fib 0.82
build, warmat most 0.8x0.98x0/45parse 1.07, hellostd 1.06, sortslice 1.06, fmtout 1.04, jsondec 1.04, stringsearch 1.04, mapstruct 1.04, sha256 1.04, fmtbuf 1.02, fmtlog 1.02, regexpbench 1.01, wordfreq 1.00, jsonenc 1.00, mapstr 1.00, nsieve 0.98, deferloop 0.98, bytecount 0.98, workerpool 0.98, strconcat 0.98, stencil 0.97, nbody 0.97, mapint 0.97, summinmax 0.97, saxpy 0.97, histogram 0.96, heapsort 0.96, conv 0.96, fib 0.96, transpose 0.96, selectpipe 0.96, quicksort 0.96, pingpong 0.95, bintrees 0.95, dot 0.95, mandelbrot 0.95, matmul 0.95, iface 0.95, structcopy 0.95, generic 0.95, spectralnorm 0.95, fannkuch 0.94, closure 0.94, hello 0.94, bits 0.93, prefixsum 0.90

marmot-dev

MetricTargetGeomeanPassMisses (worst first)
sizeat most 0.8x0.18x45/45none
size, strippedat most 0.8x0.18x45/45none
run timeat least 1.2x faster0.46x faster2/45bytecount 0.14, nbody 0.15, mandelbrot 0.16, closure 0.18, stencil 0.19, saxpy 0.22, conv 0.22, jsonenc 0.24, jsondec 0.25, matmul 0.28, spectralnorm 0.28, summinmax 0.31, parse 0.31, fmtbuf 0.32, histogram 0.34, fmtlog 0.35, fmtout 0.35, regexpbench 0.37, fannkuch 0.40, generic 0.40, dot 0.43, mapstr 0.45, wordfreq 0.45, iface 0.47, deferloop 0.51, structcopy 0.52, heapsort 0.57, prefixsum 0.58, mapstruct 0.60, mapint 0.61, strconcat 0.61, bits 0.64, quicksort 0.64, selectpipe 0.70, fib 0.73, bintrees 0.78, sortslice 0.79, sha256 0.88, nsieve 0.91, pingpong 0.96, transpose 0.98, hello 1.01, hellostd 1.02
CPUat least 1.2x faster0.47x faster2/45bytecount 0.14, nbody 0.15, mandelbrot 0.16, closure 0.18, stencil 0.19, saxpy 0.22, conv 0.22, jsonenc 0.25, matmul 0.28, spectralnorm 0.28, jsondec 0.29, summinmax 0.31, fmtbuf 0.32, histogram 0.34, parse 0.34, fmtout 0.35, fmtlog 0.35, regexpbench 0.38, fannkuch 0.40, generic 0.41, dot 0.43, wordfreq 0.46, iface 0.47, mapstr 0.49, deferloop 0.50, structcopy 0.52, heapsort 0.57, prefixsum 0.58, mapstruct 0.59, mapint 0.61, bits 0.64, quicksort 0.64, strconcat 0.71, selectpipe 0.71, fib 0.73, sortslice 0.76, sha256 0.88, nsieve 0.91, workerpool 0.97, transpose 0.98, pingpong 0.99, hello 0.99, hellostd 1.01
peak RSSat most 0.7x0.81x21/45jsondec 1.85, wordfreq 1.68, deferloop 1.64, sortslice 1.63, mapint 1.43, sha256 1.39, nsieve 1.38, mapstr 1.36, regexpbench 1.21, jsonenc 1.15, parse 1.12, fmtout 1.01, fmtlog 1.01, fmtbuf 1.01, generic 0.99, bintrees 0.98, quicksort 0.98, heapsort 0.96, transpose 0.96, stringsearch 0.96, matmul 0.87, mapstruct 0.83, hellostd 0.75, stencil 0.72
build, coldat most 0.8x0.32x45/45none
build, warmat most 0.8x0.14x45/45none

Notes

  • Linux peak RSS has a floor. bench/cmd/bench reads Maxrss from the child rusage. Go starts the child with CLONE_VM and CLONE_VFORK. So at exec, the kernel copies the peak RSS of the bench driver (12 to 14 MB) into the maxrss of the child. 29 of 45 Linux programs show go and marmot at the same value (14372864 or 12513280 bytes). The tables count only the Linux programs where both values are above 16 MB. The Mac has no floor: the same small programs show marmot near 0.55x. The bench needs a fix before Linux RSS for small programs means anything.
  • Dev mode misses run time and CPU by design today (dev builds without the optimizer). The targets say every mode, so the dev rows count as misses.
  • Mac cold builds miss on all 45 programs, release mode, geomean 1.11x. The Mac load average at the start of that run was 7.33.
  • Linux marmot-dev stencil failed its run (2 minute timeout), so dev has 44 Linux programs.
  • Run time and CPU near 1.0x are inside the run noise. Misses there are real against a 1.2x target, but one run does not separate 1.02x from 1.08x.

Later option: perfcmp build memory limit (2026-11-19)

  • Result: GOMEMLIMIT=3GiB on the marmot driver keeps a cold tuios dev build (8 jobs, main 68c48b61) at 3733 MB peak anon, in 33 s. The driver live heap stays at 1.6 to 1.9 GB, and garbage collection takes 38% of the driver CPU.
  • Release mode does not fit in 4 GB with the limit. The job reached 4633 MB (driver 3.0 GB, marmot-backend 1.7 GB) before the link step. The earlier probe measured ld alone at 3.4 GB.
  • Decision: no default change. The gates use all 3 modes, so a dev-only 4G path helps only quick checks.
  • Condition: an unlimited A/B build-time pair in the same conditions. Use the limit only if it adds under 10% build time.
  • The real target is the driver live heap.

On this page

Was this page helpful?

Report an issueOpen issues