Marmot, a Go Compiler on LLVM, Counts Its Benchmarks Two Ways
Software / news
Marmot, a Go Compiler on LLVM, Counts Its Benchmarks Two Ways
The experimental compiler's own pages put its M3 Pro run at 45 programs in one place and 43 in another, with 1.54x as the headline.

Marmot, an experimental Go compiler built on MLIR and LLVM, produced a 698 KB hello-world binary against 2.43 MB from Go's own toolchain, according to numbers its author published, and the project's own pages disagree on how many programs those benchmarks cover.
The project lives at Gaurav-Gosain/marmot and has a project site. The README calls it "experimental" and says it "is new and not ready for production use." It had 24 stars and 1,366 commits when we read it, and a Hacker News post drew 28 points.
What Marmot replaces: only the code generator
Marmot keeps Go's type checker, SSA builder and standard library and, in the site's words, "replaces the parts that generate code." A small go dialect in MLIR keeps Go's meaning long enough to remove bounds checks, keep objects on the stack and call interface methods directly. The result goes through LLVM to a native binary.
That design ties it to Go itself. The README says it "needs Go 1.27, LLVM and MLIR 22, CMake and Ninja," and that it is "built from source for now." Go 1.27 shipped on Aug. 19, in an announcement written by Nicholas Husin on behalf of the Go team.
Benchmark figures, and the 43 versus 45 mismatch
All figures below are the author's, measured on an Apple M3 Pro, and none has been reproduced by an outside party. The benchmark page says each result is the median of five runs after one warm-up, that the average is a geometric mean, and that a program counts only if its output matches Go's.
| Measure | Marmot | Go 1.27 |
|---|---|---|
Hello world, println | 201 KB | 1.83 MB |
Hello world, fmt.Println | 698 KB | 2.43 MB |
First build of cmd/marmot, 325 packages | 4.40 to 4.57 s | 6.14 to 6.18 s |
| Rebuild, nothing changed | 0.05 s | 0.15 s |
| One-line edit, deep package | 0.72 to 0.76 s | 1.18 to 1.23 s |
- Marmot698 KB
- Go 1.272430 KB
Source: marmot.gaurav.zip, author-supplied, accessed 2026-11-29
The headline run-time claim is 1.54 times faster than Go as a geometric mean. The project site says that is across 45 programs, faster on 37 and slower on eight, in release mode. The benchmark page assigns 43 programs to the M3 Pro and 45 to a separate 8-core Intel Linux desktop, and says 10 of the 43 are slower than Go. The README also says 43. The pages do not reconcile the two counts.

Where Go still wins: tree building at 0.9x, defer at 0.7x
The benchmark page names two losing programs: tree building, which stresses allocation and garbage collection, at 0.9 times Go's speed, and defer in a loop at 0.7 times. Quicksort is "about equal." The page says Go has "tuned for years" in those two areas. Go 1.27 itself cut the cost of some small allocations, under 80 bytes, by up to 30 percent, according to the Go team's announcement.
Parallel loops are off by default "while it is being reviewed." The fast development code generator, which the page says produces unoptimised code, has no speed figure yet: it is "not measured yet."
What does not work: Windows, plugins and the race detector
The support page says Windows is not supported, Linux on arm64 "builds" but is not yet run under test, and plugins and the race detector are unsupported. It lists reflect.MakeFunc as a known gap. Cgo works: "Packages that import "C" build unchanged." The README names macOS on Apple Silicon and Linux on x86-64 as targets. The WebAssembly target has planned limits of one thread, no network and no os/exec.
The next number to watch is the page's own: it calls the figures "early numbers from a young compiler" that "will change," and says they must be taken on an idle machine.
Related coverage: PocketBase, a Go project, moved off GitHub, and Peat forked Neon onto Postgres 19.
Sources
More in Software
- 01Superpowers, at 330,000 Stars, Retunes Brainstorming a Third TimeIssue #2530 says the v7 questions waste tokens, and the fix in draft pull request #2756 was written by Claude Fable 5.2.
- 02Knuth's Algorithm D Had a Bug Since 1995, but Only in Odd BasesA 1995 errata change left Theorem B unproven for the uncapped trial quotient, and LLVM's APInt carries the book's old typo harmlessly.
- 03Go 1.28 Turns Transport.CancelRequest Into a No-Op and Adds sync.CounterOf 25 accepted proposals in the Go 1.28 milestone, 17 are closed, and the CancelRequest GODEBUG is flagged as a release blocker.
- 04Unkernel Boots Linux 7.3.4 to Alpine in 0.3 Seconds on NodePooya Parsa's Vercel-sponsored project needs JSPI in the browser, has no IPv6, and ends the session on any kernel WebAssembly trap.