Tilly The Coder
Tilly The Coder
Go 1.27.4 0.1.1 (Beta · Dec 2, 2026) #2 M1 Max · #3 €1.99 VPS

Laravel Go Benchmarks

Unveiled a day after Laravel Rust, Laravel Go 0.1.1 skips macro magic and sits directly on Go's standard net/http and goroutines (http.Handler compatible). It beat hand-optimized Symfony scalar + JIT while keeping a clean idiomatic ORM and compiling to a zero-CGo binary in ~2 seconds locally.

Test Hardware

10-core Apple Silicon (8P + 2E) · 32 GB RAM · MySQL 8.4 · PHP 8.6.0 · Go 1.27.4 · Rust 1.100.1

1 vCPU (Intel Xeon Gold 6142) · 1.9 GiB RAM · Ubuntu 26.04 LTS · PHP 8.6.0 · Go 1.27.4 · Rust 1.100.1

Peak Confirmed RPS

5,600 RPS

Idiomatic ORM

Confirm p50 / p95

9.6 / 34.2ms

Fails at 5,800 RPS

50 RPS Latency & RAM

2.60ms p50

90.1 MB total (28.4 MB app)

Cold Build Time

~2s

local · CGO_ENABLED=0, 29 MB arm64 static binary

Peak Confirmed RPS

105 RPS

Idiomatic ORM

Confirm p50 / p95

10.8 / 89.3ms

Fails at 110 RPS

50 RPS Latency & RAM

6.74ms p50

81.7 MB total (28.5 MB app)

Cold Build Time

4m

42s · cold module download + compile on 1 vCPU

Benchmark Configuration & Raw Trials

Fixed-rate binary-search holds, confirmation latency, exact failure threshold, CPU split, and steady-state telemetry.

Idiomatic ORM

laravel-go
Go net/http + Caddy gzip 3-query eager load (COUNT + chirps + authors) JIT: N/A (AOT compiled) GOMAXPROCS=4

5,600 RPS

Confirmed twice · 0 fails

Confirmation Latency

9.6 / 34.2 ms

p50 / p95 · max 136 ms · 0.00% drops

Next Failing Step

5,800 RPS

0.52% drops

Steady 50 RPS Hold

2.60 / 10.4 ms

App+HTTP 14.1% · MySQL 4.5% CPU

Memory (50 RPS → Peak)

90.1 → 1,245.3 MB

App-only peak: 198.9 MB

CPU Split at Confirmed Ceiling (678% total)
App+HTTP 285.1% MySQL 114.8% k6 277.9%
Upstream-style 10→7,000 RPS ramp note: Best zero-failure 10s window scored 5,518.5 RPS at p50 16.5 ms (window drops: 695).
Inspect all 8 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
3,500 PASS 3,498.9 1.09 ms 5.52 ms 0.00% 0 264% / 82% / 202% 133.6 MB
9,000 FAIL 5,575.5 221.54 ms 554.76 ms 37.03% 0 244% / 108% / 252% 535.1 MB
6,200 FAIL 5,705.1 140.71 ms 380.22 ms 6.47% 0 287% / 125% / 288% 779.6 MB
4,800 PASS 4,795.6 1.80 ms 12.99 ms 0.00% 0 283% / 104% / 259% 1,244.6 MB
5,400 PASS 5,377.2 8.62 ms 60.15 ms 0.26% 0 275% / 110% / 273% 1,244.7 MB
5,800 FAIL 5,762.5 28.27 ms 98.45 ms 0.52% 0 274% / 111% / 279% 1,245.0 MB
5,600 PASS 5,587.0 10.09 ms 54.79 ms 0.13% 0 284% / 113% / 279% 1,245.2 MB
5,600 PASS 5,592.3 9.64 ms 34.24 ms 0.00% 0 285% / 115% / 278% 1,245.3 MB

Idiomatic ORM

laravel-go
Go net/http + Caddy gzip 3-query eager load (COUNT + chirps + authors) JIT: N/A (AOT compiled) GOMAXPROCS=4

105 RPS

Confirmed twice · 0 fails

Confirmation Latency

10.8 / 89.3 ms

p50 / p95 · max 269 ms · 0.00% drops

Next Failing Step

110 RPS

1.515% drops · p95 236 ms

Steady 50 RPS Hold

6.74 / 20.9 ms

App+HTTP 16.8% · MySQL 6.9% CPU

Memory (50 RPS → Peak)

81.7 → 92.3 MB

App-only peak: 32.0 MB

CPU Split at Confirmed Ceiling (73% total)
App+HTTP 33.9% MySQL 14.1% k6 24.6%
Inspect all 10 fixed-rate binary-search trials (12s holds)
Target RPS Result Delivered p50 p95 Drops HTTP Fail App / DB / k6 CPU RAM
50 PASS 50.3 7.03 ms 21.08 ms 0.00% 0 16% / 7% / 13% 80.9 MB
100 PASS 100.3 15.26 ms 94.66 ms 0.00% 0 36% / 15% / 28% 83.0 MB
200 FAIL 153.3 547.59 ms 838.05 ms 23.92% 0 41% / 20% / 32% 97.6 MB
150 FAIL 145.5 183.61 ms 343.83 ms 3.11% 0 46% / 19% / 29% 95.5 MB
125 FAIL 125.2 49.52 ms 186.29 ms 0.07% 0 41% / 17% / 31% 94.4 MB
110 PASS 110.3 12.94 ms 61.92 ms 0.00% 0 35% / 14% / 26% 90.6 MB
115 FAIL 113.3 28.71 ms 400.81 ms 1.81% 0 39% / 17% / 29% 93.5 MB
110 FAIL 108.7 14.59 ms 236.07 ms 1.52% 0 36% / 15% / 26% 93.0 MB
105 PASS 105.3 13.68 ms 83.22 ms 0.00% 0 36% / 15% / 27% 92.8 MB
105 PASS 105.3 10.80 ms 89.33 ms 0.00% 0 34% / 14% / 25% 92.3 MB

Where Laravel Go Sits vs. the Full Field

Highlighted bars belong to Laravel Go. Click any row to jump directly to that framework’s deep-dive.

Actual Benchmark Source Code

The exact controller/handler code executed during the timed runs for Laravel Go.

handlers/chirps/chirps.go

Exact 22-line idiomatic Go handler — generics query builder, .With("author"), and automatic pagination.

go
package chirps

import (
	"go.laravel.com/model"
	"go.laravel.com/web"

	"chirper/models"
)

func Index(r *web.Request) *web.Response {
	page, err := model.Query[models.Chirp]().With("author").Latest("id").Paginate(r, r.Page(50))
	if err != nil {
		return web.Fail(err)
	}
	return web.JSON(page)
}

func Show(r *web.Request) *web.Response {
	chirp, err := model.Query[models.Chirp]().With("author").FromRoute(r, "chirp")
	if err != nil {
		return web.Fail(err)
	}
	return web.JSON(chirp)
}

Architecture & Audit Notes

  • Built directly on Go's standard net/http with no third-party HTTP framework underneath — existing Go middleware works drop-in.
  • Uses Go generics for its model query builder (model.Query[models.Chirp]()) and pointer-bound validation rules so typos fail at compile time.
  • Same 3-query eager-load pattern (COUNT, chirps, authors) as Laravel PHP and Laravel Rust — no manual SQL join needed to beat 5,000+ RPS.
  • Higher peak RSS under bursty overload than Rust due to Go's garbage collector and retained Caddy/Go heap buffers after overload probes (steady 50 RPS footprint is just 90.1 MB total / 28 MB app-only).

Strengths

  • + Sub-second local rebuilds (~2s clean on M1 Max) vs. 1m 23s+ for Rust release builds.
  • + Second-highest overall throughput (5,600 RPS on M1 Max) with clean 6-line idiomatic ORM code.
  • + Simple, readable Go syntax with 44 Spatie packages already ported.
  • + Zero-CGo static binary (~29 MB) with goroutine fan-out, durable workflows, Inertia SSR, and Go Reverb.

Trade-offs

  • − Higher RAM ceiling under sustained pressure than Rust due to garbage collection.
  • − Slightly behind Rust at extreme saturation (failed at 5,800 RPS by just 17 dropped arrivals, p95 98.45 ms).
  • − Public beta (0.1.1) — no Livewire or Filament; frontend relies on Inertia.js or html/template + HTMX.

Reproduce Locally

Exact commands to build, migrate/seed, and serve the Laravel Go Chirper benchmark repository against MySQL 8.4:

CGO_ENABLED=0 go build -mod=readonly -trimpath -ldflags="-s -w" -o chirper-laravel-go .
export APP_ENV=production APP_DEBUG=false DB_MAX_CONNECTIONS=40
export DATABASE_URL="mysql://benchmark:[email protected]:3306/bench_laravel_go"
./chirper-laravel-go migrate --force
GOMAXPROCS=4 ./chirper-laravel-go serve --host 127.0.0.1 --port 8080