Skip to Content
marmot

This page shows where marmot stands against its targets, and what changed each day.

Scorecard

The targets compare marmot with go build on the same machine, in every build mode.

MetricTarget
Sizeat most 0.8x
Run timeat least 1.2x faster
CPU timeat least 1.2x faster
Peak memoryat most 0.7x
Build timeat most 0.8x

The target applies to each program. Each cell gives the geomean over the programs and the number of programs that meet the target. "All pass" means that every program meets the target. "Average meets target" means that the geomean meets the target, but some programs do not. "Average misses target" means that the geomean does not meet the target. Build time is a first build with empty caches.

Linux x86-64

Intel Core i7-10700, full bench run of 2026-11-19 at revision 56312427. Load average at the start: 8.18 18.95 22.35.

ModeSizeRun timeCPU timePeak memoryBuild time
-releaseAll pass. 0.14x. 45 of 45 programs pass.Average meets target. 1.49x faster. 20 of 45 programs pass.Average meets target. 1.48x faster. 20 of 45 programs pass.Average misses target. 1.04x. 2 of 45 programs pass.Average misses target. 0.89x. 26 of 45 programs pass.
devAll pass. 0.18x. 45 of 45 programs pass.Average misses target. 0.53x (slower). 3 of 45 programs pass.Average misses target. 0.54x (slower). 3 of 45 programs pass.Average misses target. 1.09x. 1 of 45 programs pass.All pass. 0.19x. 45 of 45 programs pass.

macOS arm64

Apple M3 Pro, full bench run of 2026-11-20 at revision f1332d89. Load average at the start: 2.79 2.81 2.94.

ModeSizeRun timeCPU timePeak memoryBuild time
-releaseAll pass. 0.15x. 45 of 45 programs pass.Average meets target. 1.54x faster. 21 of 45 programs pass.Average meets target. 1.57x faster. 21 of 45 programs pass.Average misses target. 0.75x. 24 of 45 programs pass.Average misses target. 1.00x. 0 of 45 programs pass.
devAll pass. 0.16x. 45 of 45 programs pass.Average misses target. 0.71x (slower). 2 of 45 programs pass.Average misses target. 0.72x (slower). 2 of 45 programs pass.Average misses target. 0.79x. 22 of 45 programs pass.All pass. 0.25x. 45 of 45 programs pass.

Both runs include MIR in dev builds. The Linux machine was shared with other work during its run. The bench timed only while the 1-minute load was under 12. The macOS run built marmot with one job per CPU. The Linux run built marmot with 2 jobs, so its build times are pessimistic for marmot. Benchmarks has the method and more numbers from the same runs.

Log

Newest first. Each entry lists what landed on main, the gate results and the accelerator work. A gate is a perfcmp run in dev, -O 2 and -release. A switch becomes the default only when its gate exits 0.

2026-11-28

  • Build info is on by default. go version -m reads the module versions, build settings and git state of a marmot binary.
  • runtime/debug.ReadBuildInfo returns the same build info. The build info also names the marmot commit that built the binary. MARMOT_BUILDINFO=0 turns it off.
  • Build info gate passed: dev 1.001, -O 2 1.004, -release 1.005. A small program grows by about 0.8 KB.
  • The new flag -buildvcs (default auto) records the git state of the main module, as go build -buildvcs does.
  • Wasm builds and test binaries do not carry build info yet.
  • Init sections are the default on macOS too. The Mac gate passed in dev, -O 2 and -release. MARMOT_INITSECT=0 turns them off. iOS keeps the opt-in.
  • Linux executables start faster and use less memory. The default Linux executable is now position dependent, as go build makes it.
  • tuios in -release starts in 5.5 ms instead of 8.1 ms. Peak memory is 25.8 MB instead of 33.6 MB. The binary is 37.8 MB instead of 44.8 MB (gc: 49.5 MB).
  • The gate passed: geomean wall time dev 0.977, -O 2 0.962, -release 0.954.
  • To keep address randomization (ASLR), build with -buildmode=pie. MARMOT_NOPIE=0 gives the PIE default of before.
  • Every build cache misses one time after this update, because the build key now records the link mode.
  • A -pie or -no-pie in #cgo LDFLAGS or MARMOT_LDFLAGS now wins over the link mode of marmot on every link.
  • Defer record elision is on by default. A function that cannot panic does not keep a defer record. MARMOT_DEFERELIDE=0 turns it off.
  • Its gate passed: dev 0.998, -O 2 1.003, -release 0.996. Conformance gave 2343 of 2358 pass and 0 fail.
  • Four tier0 switches are on by default. They let MIR compile more functions and keep more values in registers. =0 turns each one off.
  • MARMOT_TIER0_SATNARROW: MIR converts floats to 8, 16 and 32-bit integers. Before, a function with such a conversion went to LLVM.
  • MARMOT_TIER0_PIECES64: MIR takes aggregates of up to 64 pieces (before, 32). On a large program, functions that MIR leaves to the older emitters fall from 295 to 87. The code is 0.3% smaller.
  • MARMOT_TIER0_INLINE: MIR inlines small leaf functions of the same module. A loop that calls a small function then keeps its values in registers.
  • MARMOT_TIER0_CALLSAVE (x86-64): a value that lives across calls can stay in a register. MIR saves it before each call and loads it again after. Before, the value stayed on the stack.
  • A failing fuzz seed keeps the full build and run output in fail_seedN.log, up to 64 KB.
  • MARMOT_TRACE_V2=1 now acts when marmot builds a program. Only a program built with it has the execution tracer. Other builds do not change.
  • A trace build needs the trace runtime core (make -C runtime/core tracev2). It works for native builds without -race and -static.
  • Parallel builds no longer fail with "cannot open input file". A cache trim no longer deletes a file that a running build uses.
  • The fuzzer compares stderr up to the first panic line, as the conformance tests do. Two programs that panic the same way now match.

2026-11-27

  • tier0 range loops, 32-bit ALU instructions (x86-64) and tied loop counters are the default. MARMOT_TIER0_RANGELOOP=0, MARMOT_TIER0_ALU32=0 and MARMOT_TIER0_TIEPARAM=0 turn each one off.
  • Their gate passed: dev programs ran in 0.989 of the earlier wall time. spectralnorm gave 0.945 and tuios 0.941. -O 2 and -release binaries do not change.
  • -buildmode=pie packs relative relocations (RELR) only where the C library supports DT_RELR. Other links get a plain PIE, so the binary also starts with an older C library.
  • runtime.MemStats reports NumForcedGC, HeapIdle and HeapReleased. debug.FreeOSMemory returns every free page to the OS.
  • perfcmp runs a program that takes over 5 s for 4 rounds a side, so its result has a median. Before, one sample decided, and matmul went from 0.84 to 1.69 between runs.
  • perfcmp counts the last-level cache misses of each run. When other work on the machine disturbs a run, perfcmp runs it again, at most 2 times. A run that stays disturbed makes the verdict INCONCLUSIVE.
  • Stable split names are the default. Split modules get names from their content, not from the cache key. MARMOT_SPLIT_NAMEHASH=0 turns it off.
  • A switch that changes only the cache key now leaves -O 2 binaries the same. A new driver test checks this.
  • New opt-in switch MARMOT_TRACE_V2=1: runtime/trace writes Go execution traces that go tool trace and golang.org/x/exp/trace read.
  • The traces have goroutine, processor and system call events. GC, heap and CPU sample events are not written yet. Every test trace passes the validator of x/exp/trace.
  • MARMOT_TEST_SLOW=1 runs the slow driver tests of marmot.

2026-11-26

  • New opt-in run-time switch: with MARMOT_SYSMON_EAGER=1, the system monitor sleeps as soon as every processor is idle. It waits for its gate.
  • In an idle test of a terminal program, client context switches in 10 s fell from 685 to 160 (go: 191).
  • MARMOT_TRACE=wakeups=DIR/ writes one wakeup trace per process, so a program that starts copies of itself gets one trace for each.
  • cgo reads C macros that expand to an expression, such as a function call. Before, such a package did not compile.
  • An //export function may return C.bool.
  • Dev builds on Linux that reuse tier 1 objects now name the file and line in tracebacks. This is the default. MARMOT_PCLN_SYMFUNCS=0 turns it off.
  • Its checks passed: the 135 bench builds are byte-identical with it on and off, and dev perfcmp gave 1.010.
  • The race detector is on main. -race works with marmot build, marmot run and marmot test, for native linux/amd64 builds without -static.
  • A race build links the ThreadSanitizer runtime of LLVM compiler-rt. Build the runtime once with make -C runtime/core race COMPILER_RT=DIR.
  • A race build reports each race on stderr in the format of gc, and exits with code 66.
  • It finds the race in 348 of the 362 race tests of gc that run, with no false reports. Builds without -race do not change: perfcmp gave dev 1.000, -O 2 1.007, -release 0.997.
  • Init sections are the default for ELF targets. Gate passed: dev 1.005, -O 2 1.013, size 0.988 and 0.993. On macOS, the switch stays opt-in.
  • New opt-in switch: MARMOT_SPLIT_NAMEHASH=1 names split modules by their content, so the -O 2 layout stays the same when an option changes. It waits for its gate.
  • On x86-64, builds other than dev keep each branch inside a 32-byte boundary. This avoids a slow path of some Intel CPUs (the JCC erratum). MARMOT_BRANCH_ALIGN=0 turns it off.
  • Branch alignment gate passed: -release wall time 0.994 of the earlier build, and iface in -release 0.814. Size grows 2.2% in -O 2 and -release. Dev builds do not change.
  • The escape set is the default: escape summaries, escape analysis across packages and the extended escape rules. More values stay on the stack.
  • MARMOT_ESCAPE_SUMMARY=0, MARMOT_XPKG_ESCAPE=0 and MARMOT_ESCAPE_EXT=0 turn each part off.
  • Escape set gate passed, with branch alignment on both sides. Wall time: dev 0.986, -O 2 0.991, -release 1.004. Size: 0.992, 0.992 and 0.986.
  • The support matrix has new test results: 751 of 755 tests pass in dev builds. All 36 real modules pass.

2026-11-25

  • Split by program size is the default in -release. MARMOT_SPLIT_ADAPT=0 turns it off. Gate passed on Linux and on macOS.
  • Wall time on Linux against the earlier build: dev 0.998, -O 2 0.989, -release 0.999.
  • Fix (opt-in): with MARMOT_PCLN_SYMFUNCS=1, repeat dev builds on Linux keep the file and line in tracebacks. It becomes the default after its checks.
  • On Linux, the runtime marks the card table, the page map and the heap bits as no transparent huge pages. This is the default. MARMOT_NOHUGE=0 turns it off.
  • The heap itself keeps huge pages. Gate passed: wall time dev 1.004, -O 2 0.993, -release 0.989.
  • Peak memory in dev builds falls to 0.910 of the earlier value. pingpong falls from 4.5 MB to 2.5 MB, and spectralnorm from 4.3 MB to 2.5 MB.
  • Accelerators (early numbers): a tiled float32 matrix multiply kernel on the RTX 3070, without TF32, against the best cuBLAS algorithm.
  • The kernel computes 128 x 128 tiles, with 8 x 8 results per thread. It gives 7.0, 9.8 and 9.7 TFLOP/s at sizes 1024, 2048 and 4096.
  • This is 0.77x, 0.87x and 0.88x of cuBLAS. Before, the kernel was 70x to 82x slower than cuBLAS.
  • The timing spread is still 3.5% to 24%, because the GPU clock drops. Treat these numbers as early.
  • New opt-in backend option -loops-rtsign: a loop with a stride or a coefficient of unknown sign gets run-time sign checks. Then it can run in parallel or on the GPU.
  • With -loops-rtsign, a matrix multiply with run-time sizes becomes a parallel 2-D GPU kernel.
  • A cache hit now marks the saved file hash of the backend as used. The cache trim no longer deletes it first, so warm builds do not hash the 90 MB backend again.
  • Package cache keys now hold the content of the backend, the pc table tool and the runtime bitcode. A rebuild of one of these files no longer reuses old cached modules.
  • Accelerators: the GPU loop tests pass on arm64 Macs too. On arm64, a float multiply and add fuse into one instruction, so the tests now round each product.
  • Accelerators (not on main yet): a GPT-2 small forward pass in pure Go, built with marmot, gives the same outputs as Hugging Face. This is step 1 of stage 2.
  • The test uses 3 prompts of 37, 42 and 46 tokens. The relative error of the logits is at most 1.1e-5, and the top token is the same at every position.
  • Split reach is the default: each split group of a large module copies only the definitions that it reaches. MARMOT_SPLIT_REACH=0 turns it off.
  • The object cache key holds the value of the split reach switch.
  • Split reach gate passed. Wall time against the earlier build: dev 0.990, -O 2 1.018, -release 0.997, all within the noise. Binary size does not change.
  • On a large program, split reach gives the optimizer 6% less input at -O 2 and 19% less at -release.
  • marmot test stops a test binary after 10 minutes by default, as go test does. -timeout sets the limit, and -timeout 0 removes it.
  • A test that hangs now stops with a panic that shows the stack of every goroutine.
  • New opt-in tier0 switch: MARMOT_TIER0_TIEPARAM=1 keeps a loop counter and its increment in one register. It waits for its gate.
  • The driver writes the module text in pieces, and writes each part when it is done. Before, it held a joined copy of the text and every part of a package until the end.
  • On a cold dev build of a large program, the memory profile showed about 900 MB of driver heap in these two places. Identity runs show that the build output does not change.
  • Measured peak memory of the same build, driver and backend together, with 8 jobs: 6662 MB, against 7342 MB before (680 MB or 9% less). Build time stays at 25 s. This is one run each.
  • The marmot build and marmot run pages now list -gpu and -gpu-remarks.

2026-11-24

  • Work resumed after a pause.
  • All gates in the queue were cancelled on 2026-11-20. They are being submitted again, so their verdicts are still open.
  • No change landed on main between 2026-11-20 and the morning of 2026-11-24.
  • New opt-in tier0 switches: MARMOT_TIER0_ALU32=1 uses 32-bit x86-64 instructions for 32-bit integer arithmetic. MARMOT_TIER0_RANGELOOP=1 drops the bounds check that the loop test of a range loop already decides. Both wait for their gates.
  • MARMOT_SPLIT_ADAPT=1 keeps the runtime module whole when a program uses channels.
  • Fix: the memory profiler no longer crashes in code without frame pointers, such as linked C code. Gate passed, with no change in run time.
  • Accelerators: a -gpu binary now runs parallel loops on the GPU by default, when the cost model predicts a gain. MARMOT_GPU=0 keeps them on the CPU.
  • Without a CUDA driver, the loops of a -gpu binary run on the CPU with the same output. Builds without -gpu do not change.
  • Accelerators: first GPU numbers, on an NVIDIA RTX 3070. The test is a plain Go matrix multiply (three nested loops), built with marmot build -gpu at main 0632a187. The times include the copies to and from the GPU.
  • float32, 2048 x 2048: 169 ms on the GPU, against 8.9 s on 8 CPU cores (53x) and 63.5 s on one core.
  • float64, 2048 x 2048: 173 ms on the GPU, against 25.9 s on 8 CPU cores (150x).
  • Every build gives the same checksum, so the GPU results are the same as the CPU results.
  • saxpy stays on the CPU. The copies cost about 80 times the kernel, and the cost model sees this.
  • Against cuBLAS, the float64 kernel is 2.1x to 2.3x slower, and the float32 kernel is 70x to 82x slower. The kernels have no tiling yet. Stage 2 adds it.
  • The CPU times come from a loaded machine (load 22 to 34). Compare them only as orders of magnitude.

2026-11-20

  • The backend memory limit is a quarter of the machine memory by default, from 3 GB to 8 GB. The error message names the setting to raise.
  • New full bench run on macOS (revision f1332d89), the first that builds marmot with one job per CPU. The scorecard and Benchmarks use it.
  • macOS first build in -release: 1.00x of go build (was 1.13x). It still misses the 0.8x target on all 45 programs.
  • macOS run time: -release 1.54x faster than go, dev 0.71x. The Linux rows stay from the run of 2026-11-19.
  • New full bench runs on Linux (revision 56312427) and macOS (revision 0e2162b7). The scorecard and Benchmarks use them.
  • Dev builds with MIR: 0.53x the speed of go on Linux (was 0.41x) and 0.71x on macOS (was 0.46x).
  • Release builds: 1.49x faster than go on Linux (was 1.44x) and 1.56x on macOS (was 1.55x).
  • Peak memory on Linux now counts all 45 programs. Release builds use 1.04x the peak memory of go there, so the target is missed.
  • Four tier0 improvements are the default in dev builds: address folding, dominating checks, range checks and two-address registers (x86-64). Gate passed: dev programs ran in 0.907 of the earlier wall time.
  • Accelerators: marmot build -gpu builds GPU kernels for NVIDIA GPUs from sm_75 on. -gpu-remarks tells which loops became kernels, and why not.
  • Accelerators: a matrix multiply written as plain nested Go loops runs on the GPU, with one thread per result element. Its results are the same as Go on the CPU. Run it with MARMOT_GPU=1.
  • New opt-in switch: MARMOT_SPLIT_ADAPT=1 splits large -release builds by program size and groups functions by call graph.
  • string([]byte) of one byte no longer allocates, as in go. Gate passed in dev, -O 2 and -release.
  • Cause of the Linux memory gap found: small programs get a 2 MiB huge page on their first heap chunk. A fix behind MARMOT_NOHUGE=1 waits for its gate. It is expected to save about 2 MB on about 30 programs.
  • Bench method: from f1332d89, the bench builds marmot with one job per CPU, as go does. Before, marmot had 2 jobs. The next full runs use the new method.
  • Race detector (not on main yet): 308 of 363 tests of the Go race test suite pass (was 250 in the morning). It catches 183 races. 45 races are missed, 2 reports are false, and 8 tests time out.
  • Measured and stopped: a map directory layout. It cut the peak memory of mapint from 104.6 MB to 75.4 MB, but map lookups were 6 to 11% slower.
  • Measured and dropped: a separate cold build of the standard library. Cold standard library code is only 11 to 14% of backend time.

2026-11-19

  • MIR is the default for dev builds. Gate passed: dev programs ran in 0.778 of the earlier wall time. -O 2 and -release did not change.
  • Stable tier0 names are the default. Gate passed. Dev builds now give the same symbol table when a switch changes.
  • On macOS, memory that the runtime uses again counts in the footprint again. Gate passed on macOS.
  • Loop versioning (opt-in): the loop guard drops conditions that other conditions imply. Over 30 bench loops, 408 conditions became 220.
  • New opt-in tier0 switches: MARMOT_TIER0_ADDR, MARMOT_TIER0_RANGES and MARMOT_TIER0_TIE. They wait for their gates.
  • Race detector (not on main yet): marmot build -race reports a data race with the Go file and line, and exits with code 66. Programs without a race exit with code 0.
  • Race detector: the first full run of the Go race test suite with marmot test -race. 250 of 363 tests pass. 103 races are missed, mostly inside runtime operations that are not annotated yet (maps, channels, append, conversions). 10 reports are false, and 7 tests are skipped. The false reports come first.
  • Accelerators: stage 1 started. Stage 1 compiles Go loops to CUDA kernels, with a CPU fallback.
  • Accelerators: the stage 1 fixes are on main, and the GPU tests pass on an NVIDIA RTX 3070. Builds without -gpu do not change.
  • GPU loop offload copies each object on its own, and copies back only the bytes that the loop writes.
  • Loops that write with gaps, write under a condition, or copy pointers stay on the CPU. Histogram loops with private arrays also stay on the CPU.
  • Long kernels run in slices of about 50 ms, so the driver of a display GPU does not stop them.
  • GPU offload is opt-in: build with MARMOT_BACKEND_FLAGS=-gpu and run with MARMOT_GPU=1.
  • Testing found a bug in the Go compiler: golang/go#83209. A side effect is lost in append(f(), make([]T, g())...) when f and g are inlined.
  • macOS links are deterministic: two links of the same objects give one binary. Gate passed on macOS: dev 1.004, -O 2 0.996, -release 0.992. MARMOT_GCVARS_LIVE=1 turns the change off.
  • A new full bench run on macOS started.

2026-11-18

  • Module parts link in a fixed order by default. Gate passed.
  • The object cache key holds the build of the backend and the LLVM version. A rebuilt backend no longer reuses old objects.
  • MIR keeps values of panic paths out of callee saved registers. Gate with MIR on passed: dev 0.912 of the earlier wall time.
  • New opt-in switches: MARMOT_DWARF, MARMOT_LOOPS_VERSION, MARMOT_ROCONV and MARMOT_DEVIRT1.
  • Fixes in opt-in switches: MARMOT_DEFERELIDE runs deferred calls at every panic, and MARMOT_APPENDMAKE fuses only adjacent code.
  • Held: early collection lowered peak memory but cost more than 2% CPU, so it failed its gate.
  • Bench tool: Linux peak memory now comes from a small helper process, without the floor of the bench driver.

2026-11-17

  • Pointer-free data sections and scan records for package data are the default. Gate passed.
  • Maps give old tables back, and the collector no longer keeps dead objects through stale register words. Gate passed.
  • MIR became the default for dev builds and was turned off again on the same day. One -release build differed with and without it.
  • The backend gives the same object in every run. A -nocache build gives the same binary as a cold cached build.
  • New opt-in switches: MARMOT_BOXSCALAR and MARMOT_APPENDSTACK.
  • LLVM_RELEASE=1 works on macOS on Apple Silicon.
  • Full bench runs on Linux and macOS. They give the scorecard above.
  • Accelerators: the research note is done.

On this page

Was this page helpful?

Report an issueOpen issues