Lobsters benchmark results

Run lobsters · 2026-08-21T06:58:10Z · 85ce611a88ea · spinel e4cce5b5f1d7

The performance numbers on this page are not trustworthy

Timings below are still shown, and are still real measurements of what the code did — but what the code did was not what Rails does, so they do not measure the same work and must not be compared. This banner is generated from the run's own data and disappears by itself once every lane renders what Rails renders on every route IN SCOPE, and every timed visit returns 200. Routes deferred out of scope are listed below with the reason; they are excluded from the timed sequence in every lane, including Rails, so the lanes still measure the same work.

2 routes the AOT lane is known not to render

routewhycloses withsince
/hottestinline `render json:` is not lowered for strict targets, so the emit answers this route with its html armthe render-json monomorphizer: src/lower/as_json_shape.rs and as_json_writer.rs are committed; remaining is type inference for Computed pair values, nested-record and Array[String] encoding, the datetime offset format, and widening FormatBreadth2026-08-03
/u/:usernameMarkdowner.to_html is a raising facade -- the AOT tree ships no CommonMark renderera Commonmarker/Markly facade over an iterative Node#walk plus the DOM surgery Markdowner does (h1-h6 to strong, images to links, rel=ugc, @mention linkifier); scripts/markly-conformance already carries vectors generated from the real gem2026-08-03

These are counted as failures in every number on this page — the parity badge above still reads them as not rendering what Rails renders. Listing them here separates a capability we have not built from a difference nobody has explained; both are failures, and only one is a surprise.

Roundhouse YJIT 26/26 content parity Roundhouse no JIT 26/26 content parity 3.63× — Roundhouse YJIT vs Rails YJIT
Artifacts: matrix.json · env.json · spinel-tree.tgz · ruby-tree.tgz · rails/rails.json · rails-int/rails.json · ruby/summary.json · ruby-int/summary.json
Methodology — ruby-bench's, deliberately. Every lane times under the ruby-bench harness rule: 15 full-sequence warmup iterations discarded from the stats, then more until at least the minimum timed iterations are recorded AND total wall clock — warmup included, as upstream counts it — reaches the minimum seconds. The reported figure is the average ms per iteration over the non-warmup iterations, the statistic ruby-bench itself prints; the median stays in each lane's JSON as a robustness cross-check. The stability and comparison numbers replay a frozen 106-visit sequence (versioned at bench/lobsters/frozen-sequence.json) so every run — and the Rails baseline — walks the identical path. Both stacks serve from an in-memory SQLite seeded at boot (file:lobsters_bench?mode=memory&cache=shared), the shape the ruby-bench lobsters benchmark runs. The per-route table further down replays each distinct route once, before warmup, to verify status, bytes and content — it publishes no latency; each lane's pre-warmup single shot stays in its summary JSON as a diagnostic.

The runtime × JIT matrix section re-runs the same frozen sequence once per interpreter × JIT lane — in-process, in-memory, single-threaded — so its rows differ only in the runtime under test.

Every lane runs ANALYZE once after seeding its in-memory copy (a departure from stock ruby-bench, whose fixture DB carries no sqlite_stat1): without planner statistics SQLite misplans the hottest-stories SELECT under /rss, /hottest, and /recent — a full-table walk plus sort instead of reading hotness_idx to the LIMIT, ~100× the query cost — and both stacks pay that same planner accident. Statistics restore the plan a production database would have; both lanes get identical stats, so the comparison is unchanged in kind and fairer in degree.

This measures one specific reference app (the ruby-bench lobsters fixture), not arbitrary Rails workloads. The Rails baseline runs the real Rails lobsters over the same sequence; the roundhouse cell serves the same routes from the Roundhouse-emitted framework.

1. Roundhouse vs Rails — runtime × JIT

4 lanes, three of them the claim. Rails YJIT is the baseline; Roundhouse YJIT is the like-for-like comparison against it — same runtime, same JIT, so the only variable is the code; the AOT lane did not run. The 2 no-JIT rows size the JIT's contribution and are not the headline.

3.63× faster than Rails — 126.0 ms/iter (avg) vs Rails' 457.4, both stacks CRuby with YJIT. The full field:

Every lane replays the same frozen sequence in-process, in-memory, single-threaded — no HTTP server, no load generator — so the only variable across rows is the interpreter × JIT under test (the ruby-bench lobsters-for-YJIT shape). Lower is better; whiskers span each lane's min–max.

Roundhouse YJIT126.0 ms3.63× vs Railsn=64Roundhouse no JIT168.3 ms4.52× vs Railsn=44Rails YJIT457.4 msn=20Rails no JIT759.9 msn=20
stackJITavg ms/itermin–maxCVdriftitersvs Rails
RoundhouseYJIT125.96113.6–131.84.7%-1.6%643.63×
Roundhouseno JIT168.28157.1–170.91.5%+0.1%444.52×
RailsYJIT457.37451.0–479.01.6%-1.6%201.00×
Railsno JIT759.93741.3–788.01.4%+2.1%201.00×
RoundhouseAOTNO DATA — failed at replay: lobsters-spinel-replay: build: spin build failed after 123.1s

Every lane queried SQLite 3.50.3 at runtime.

YJIT during the timed window
lanecode regioniseqs compiledinvalidationscode GCscompile time
Roundhouse YJIT2,694 KiB / 4,028 KiB+300+2.6 ms

Deltas across the timed iterations only — warmup is excluded, so a zero row means YJIT had finished its work before the clock started. Non-zero iseqs compiled means new code was still being generated while being measured; invalidations means compiled code was being thrown away and redone; a non-zero code GCs means the code region filled and YJIT reclaimed it, after which previously-compiled paths must be compiled again.

“vs Rails” is a speed ratio — Rails' ms/iter ÷ this row's, at the same JIT level — so 3× means three times faster. Memory is a separate section below. CV = per-lane standard deviation ÷ mean across the timed iterations.

Per-lane iteration stability (4 lanes)

Roundhouse YJIT — 128.9 ms/iter median over 64 iterations (15 warmup)

114129132iteration 1iteration 64

Roundhouse no JIT — 168.7 ms/iter median over 44 iterations (15 warmup)

157169171iteration 1iteration 44

Rails YJIT — 454.5 ms/iter median over 20 iterations (15 warmup)

451454479iteration 1iteration 20

Rails no JIT — 759.3 ms/iter median over 20 iterations (15 warmup)

741759788iteration 1iteration 20

Each column is one timed iteration, scaled within a tight band around the lane's spread; the dashed line is the median.

Lanes measured 2026-08-21T07:00:44Z · host showcase.party — one process per lane, JIT pinned per lane.

2. Per-endpoint breakdown

Where the overall 3.63× win comes from — each endpoint's median latency over every timed visit of the frozen sequence, Rails vs roundhouse. Bars are log-scaled; the ratio at the right is Rails ÷ roundhouse (green = roundhouse faster).

A diagnostic breakdown, not a re-derivation: per-endpoint medians don't sum to the sequence median (GC and ordering don't decompose linearly), and the sub-millisecond rows sit near clock resolution — trust the ranking, not the third decimal.

railsroundhouse0110100ms/threads4.2×/newest4.4×/threads/:username3.9×/rss2.1×/comments3.1×/s/:story_id5.5×/top?length=1w1.7×/top?length=1d1.7×/top?length=1y1.7×/saved9.5×/settings14.6×/recent0.8×/u12.1×/replies/comments11.0×/active9.5×/replies/unread10.8×/upvoted/comments8.6×/upvoted/stories10.3×/replies/stories10.9×/hidden10.0×/replies10.2×/comments/:comment_id/reply7.1×/about7.3×
Per-endpoint table (23 endpoints)
endpointrailsrails no-JITroundhouseroundhouse no-JITratiovisits/iter
/threads12.7122.483.055.004.17×3
/newest12.7022.992.904.584.38×5
/threads/:username9.97
own 8.48
17.162.57
own 2.15
floor 1.91
4.123.89×2
/rss9.5514.304.605.942.08×4
/comments7.6313.602.473.633.09×4
/s/:story_id5.609.911.021.685.50×15
/top?length=1w3.985.452.382.491.67×2
/top?length=1d3.955.372.342.441.69×4
/top?length=1y3.785.232.162.271.75×2
/saved3.376.040.360.609.49×5
/settings2.894.830.200.3314.58×3
/recent2.604.513.443.560.76×2
/u2.173.080.180.2712.11×15
/replies/comments1.892.800.170.2710.97×3
/active1.873.300.200.329.49×6
/replies/unread1.872.940.170.2710.79×7
/upvoted/comments1.863.160.220.338.59×3
/upvoted/stories1.843.160.180.3010.31×6
/replies/stories1.832.770.170.2710.95×2
/hidden1.813.260.180.3010.02×4
/replies1.752.680.170.2810.15×3
/comments/:comment_id/reply1.702.820.240.387.08×5
/about1.101.880.150.257.31×1

All lane columns are median ms per visit; ratio = rails ÷ roundhouse (the +YJIT pair). A route marked cached serves its timed visits from a cache in the app itself (lobsters keeps some whole pages for 24h), in every lane — those medians price a cache hit, not the render. An own figure appears where a route's median runs more than 10% above its own work (p25 of its visits) — the gap is collection triggered during that visit but caused by the heap the whole sequence built, so it belongs to the lane rather than to the route. It is largest on the cheapest routes, which is where the median is least trustworthy as a per-route cost. A floor figure appears below that where p25 is itself more than 10% above the fastest visit recorded: p25 only removes collection cost when fewer than a quarter of a route's visits collect, and where more than a quarter do, p25 is still pricing marks. The floor is one sample and therefore noisy downward — read it as a bound, not a measurement.

3. Memory footprint

Peak resident memory of each lane's replay process — lower is better. Because the lanes replay in-process, each one measures itself (VmHWM from /proc/self/status), so this is the whole stack: interpreter, framework, the in-memory fixture DB, and whatever the timed run retains on top.

The bar splits at the point the sequence starts. The solid segment is the baseline — everything loaded and seeded, before a single visit. The translucent segment is growth across the timed run. The two say different things: baseline is what the stack costs to stand up, growth is what serving retains.

Roundhouse no JIT109 MB94 MB baseline + 15 MB growthRoundhouse YJIT131 MB94 MB baseline + 37 MB growthRails no JIT306 MB175 MB baseline + 131 MB growthRails YJIT342 MB183 MB baseline + 159 MB growth
stackJITbaselinepeakgrowthvs Rails (memory)
Roundhouseno JIT94 MB109 MB+15 MB2.82×
RoundhouseYJIT94 MB131 MB+37 MB2.61×
Railsno JIT175 MB306 MB+131 MB1.00×
RailsYJIT183 MB342 MB+159 MB1.00×

“vs Rails (memory)” is peak RSS ÷ peak RSS at the same JIT level — not the speed ratio in the matrix table above; the two differ. Baseline is sampled after the in-memory fixture DB is seeded, and it is not a common floor across lanes — each stack loads its own framework, so subtracting one lane's baseline from another's peak is meaningless.

4. Coverage — HTTP 200 (26/26)

What the numbers above are numbers of: every distinct route the benchmark exercises returns 200 on the CRuby emit target — the timing sections measure a complete application, not a working subset. A failing cell here would invalidate that lane's rows above.

Content was not compared for this run — no Rails lane ran, so there was no oracle to compare against. These cells attest that each route answered, not that it answered correctly.

Per-route table (26 routes)
routestatusbytes
/u200173,521
/active2002,452
/newest20061,250
/recent2002,679
/hottest declared gap20016,369
/rss20016,362
/privacy2002,365
/about2002,238
/settings20015,167
/top?length=1d2002,581
/top?length=1w2002,584
/top?length=1y2002,584
/hidden2002,507
/saved2005,048
/upvoted/stories2002,680
/comments20035,716
/upvoted/comments2002,730
/threads20057,907
/comments/6srqij/reply2002,603
/threads/michell_wiegand20057,916
/u/michell_wiegand declared gap2004,209
/replies2002,673
/replies/comments2002,669
/replies/stories2002,676
/replies/unread2002,713
/s/enr7ye2007,390

This table verifies parity — what each route answered and how much of it — not speed; the timing sections above are the performance numbers.

5. Environment & provenance

Run, stacks, sequence

Run

commandscripts/bench-lobsters rails rails-int ruby ruby-int spinel --time 20 --src /home/rubys/ruby-bench/benchmarks/lobsters
source/home/rubys/ruby-bench/benchmarks/lobsters
commit85ce611a88ea07302004f2d6cf55a0da7b002edb
fixture commit09b76c8b0f94c8182080cdae01e95151f0e22dd9
captured2026-08-21T07:00:43Z
databasefile:lobsters_bench?mode=memory&cache=shared
story / commentenr7ye / 6srqij

Stacks

roundhouse rubyruby 4.0.5 (2026-05-20 revision 64336ffd0e) +YJIT +PRISM [x86_64-linux]
rails rubyruby 4.0.5 (2026-05-20 revision 64336ffd0e) +YJIT +PRISM [x86_64-linux]
rails8.1.1

AOT toolchain

spinel (AOT)spinel e4cce5b5f1d7 [cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0]
C compilercc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0

Host

hostshowcase.party
cpuAMD Ryzen 5 3600 6-Core Processor
cores12
kernelLinux 6.8.0-137-generic

Sequence

visits/iter106
warmup15
roundhouse iters64
rails iters20

Generated 2026-08-21T17:48:27Z from summary.json.