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.
| route | why | closes with | since |
|---|---|---|---|
/hottest | this snapshot's Story#as_json serializes a nested record (`submitter_user: user`), which the render-json monomorphizer declines, so the emit answers this route with its html arm | nested-record encoding: Story's writer calling User's, where User#as_json is the attrs + super(only:) idiom with four row-dependent keys, a pluck, and keybase_signatures (an Array of Hashes, which needs its own encoding) | 2026-08-03 |
/u/:username | Markdowner.to_html is a raising facade -- the AOT tree ships no CommonMark renderer | a 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 gem | 2026-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.
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.
5 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.47× faster than Rails — 149.4 ms/iter (avg) vs Rails' 519.1, 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.
| stack | JIT | avg ms/iter | min–max | CV | drift | iters | vs Rails | vs Rails (parity only) |
|---|---|---|---|---|---|---|---|---|
| Roundhouse | YJIT | 149.40 | 128.2–175.0 | 10.0% | -1.0% | 53 | 3.47× | 4.24× 22 routes |
| Roundhouse | no JIT | 202.05 | 187.6–221.3 | 3.7% | -0.3% | 35 | 4.34× | 4.90× 22 routes |
| Futamura | YJIT | 515.62 | 503.2–538.7 | 1.6% | -0.7% | 20 | 1.01× | — |
| Rails | YJIT | 519.09 | 506.2–540.9 | 1.7% | -1.3% | 20 | 1.00× | — |
| Rails | no JIT | 876.43 | 860.4–889.1 | 0.8% | -0.6% | 20 | 1.00× | — |
| Roundhouse | AOT | NO DATA — failed at replay: lobsters-spinel-replay: build: spin build failed after 67.6s | ||||||
Every lane queried SQLite 3.50.3 at runtime.
Two ratios, because one lane is not rendering what Rails renders. Roundhouse YJIT is at 25/26 content parity; over the 22 routes it renders equivalently it is 4.24× (108.0 ms/iter vs 458.1), against 3.47× over the whole sequence; Roundhouse no JIT is at 25/26 content parity; over the 22 routes it renders equivalently it is 4.90× (161.0 ms/iter vs 789.5), against 4.34× over the whole sequence. Both sides of the restricted division cover the same routes. The unrestricted number is not wrong, but part of it is earned by rendering less.
| lane | code region | iseqs compiled | invalidations | code GCs | compile time |
|---|---|---|---|---|---|
| Roundhouse YJIT | 2,973 KiB / 4,380 KiB | +3 | 0 | 0 | +2.9 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.
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-10-12T09:12:28Z · host showcase.party — one process per lane, JIT pinned per lane.
Where the overall 3.47× 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.
| endpoint | rails | rails no-JIT | roundhouse | roundhouse no-JIT | ratio | visits/iter |
|---|---|---|---|---|---|---|
/newest | 14.44 | 26.75 | 3.25 | 5.56 | 4.45× | 5 |
/threads | 14.38 | 26.16 | 3.46 | 5.56 | 4.16× | 3 |
/threads/:username | 11.33 own 9.36 | 20.06 | 2.81 own 2.31 | 4.54 | 4.03× | 2 |
/rss | 10.83 | 16.59 | 4.90 | 6.35 | 2.21× | 4 |
/comments | 8.68 | 15.91 | 2.10 | 3.30 | 4.13× | 4 |
/s/:story_id | 6.39 | 11.50 | 1.22 | 1.90 | 5.25× | 15 |
/top?length=1w | 4.52 | 6.23 | 2.85 | 3.14 | 1.59× | 2 |
/top?length=1d | 4.49 | 6.08 | 2.90 | 3.16 | 1.55× | 4 |
/top?length=1y | 4.33 | 5.98 | 2.64 | 2.88 | 1.64× | 2 |
/saved | 3.80 | 6.88 | 0.60 | 0.99 | 6.35× | 5 |
/settings | 3.29 | 5.52 | 0.59 own 0.48 | 0.96 | 5.57× | 3 |
/recent | 3.00 | 5.13 | 0.52 | 0.80 | 5.75× | 2 |
/u | 2.50 | 3.56 | 0.36 own 0.27 floor 0.24 | 0.53 | 6.94× | 15 |
/replies/comments | 2.13 | 3.22 | 0.36 own 0.32 | 0.54 | 6.01× | 3 |
/replies/unread | 2.08 | 3.38 | 0.44 | 0.66 | 4.72× | 7 |
/upvoted/comments | 2.08 | 3.58 | 0.40 own 0.35 | 0.57 | 5.25× | 3 |
/upvoted/stories | 2.08 | 3.63 | 0.35 own 0.30 | 0.56 | 5.89× | 6 |
/active | 2.08 | 3.80 | 0.45 | 0.69 | 4.64× | 6 |
/replies/stories | 2.08 | 3.21 | 0.31 | 0.50 | 6.72× | 2 |
/hidden | 2.05 | 3.73 | 0.36 own 0.31 | 0.55 | 5.68× | 4 |
/replies | 1.99 | 3.10 | 0.37 own 0.32 | 0.55 | 5.43× | 3 |
/comments/:comment_id/reply | 1.96 | 3.25 | 0.37 | 0.58 | 5.34× | 5 |
/about | 1.26 | 2.17 | 0.24 | 0.42 | 5.24× | 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.
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 JIT is at 25/26 content parity; Roundhouse YJIT is at 25/26 content parity. Peak memory is measured over the same sequence as the timings, so a lane that renders less also allocates and retains less — read its bar the way you read its ms/iter, not as a like-for-like footprint.
| stack | JIT | baseline | peak | growth | vs Rails (memory) |
|---|---|---|---|---|---|
| Roundhouse | no JIT | 103 MB | 121 MB | +18 MB | 2.56× |
| Roundhouse | YJIT | 104 MB | 141 MB | +38 MB | 2.43× |
| Rails | no JIT | 177 MB | 309 MB | +132 MB | 1.00× |
| Rails | YJIT | 183 MB | 344 MB | +160 MB | 1.00× |
| Futamura | YJIT | 183 MB | 344 MB | +161 MB | 1.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.
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.
Status is a weak oracle, though — a 200 that renders half a page is still a 200 — so the bodies are also compared against Rails' as parsed documents. 25/26 routes render content equivalent to Rails. See the section below for what "equivalent" is defined to mean and what the remainder are.
| route | status | bytes |
|---|---|---|
/u | 200 | 173,564 |
/active | 200 | 2,495 |
/newest | 200 | 61,293 |
/recent | 200 | 2,722 |
/hottest declared gap | 200 | 16,369 |
/rss | 200 | 16,362 |
/privacy | 200 | 2,408 |
/about | 200 | 2,281 |
/settings | 200 | 15,425 |
/top?length=1d | 200 | 2,624 |
/top?length=1w | 200 | 2,627 |
/top?length=1y | 200 | 2,627 |
/hidden | 200 | 2,550 |
/saved | 200 | 5,091 |
/upvoted/stories | 200 | 2,723 |
/comments | 200 | 35,759 |
/upvoted/comments | 200 | 2,773 |
/threads | 200 | 57,950 |
/comments/6srqij/reply | 200 | 2,646 |
/threads/michell_wiegand | 200 | 57,959 |
/u/michell_wiegand declared gap | 200 | 4,252 |
/replies | 200 | 2,716 |
/replies/comments | 200 | 2,712 |
/replies/stories | 200 | 2,719 |
/replies/unread | 200 | 2,756 |
/s/enr7ye | 200 | 7,433 |
This table verifies parity — what each route answered and how much of it — not speed; the timing sections above are the performance numbers.
Every parity route is fetched from real Rails and from the emit, and both bodies are parsed into a canonical token stream and diffed there. That makes the comparison blind to four things that are not differences — indentation and formatting whitespace between block elements, attribute order, void-element spelling (<img> vs <img />), and character-reference spelling (' vs ') — and blind to nothing else.
| route | differing tokens | first difference |
|---|---|---|
rss | 25 | - "Tue, 18 Jul 2023 05:29:46 -0500" + "Tue, 18 Jul 2023 10:29:46 +0000" |
Each route's first differing hunk; - is Rails, + is the emit. Full hunks in ruby/content-parity.md.
| rule | kind | applications | why |
|---|---|---|---|
csrf-token | mask | 29 | per-session token; a fresh value on every boot |
relative-time | mask | 109 | "3 hours ago" is a function of when the replay ran — the COUNT is masked, the unit is not |
clock-countdown | mask | 1 | "stop accepting comments in N minutes" ticks between the two replays |
timestamp-value | mask | 109 | title=/datetime= instants differ by the gap between replays — digits are masked, the FORMAT is not |
asset-prefix | known | 46 | emit serves /assets/NAME where Rails serves /stylesheets/ and /javascripts/ |
request-scheme | known | 1 | the Rails replay builds https:// envs, the emit replay http:// — a harness artifact, not an app difference |
mask — varies per run or per session by construction and carries no information. known — a genuine, understood difference from Rails, folded so it does not drown the signal but counted here so it cannot be forgotten.
| command | scripts/bench-lobsters rails rails-int ruby ruby-int spinel futamura --time 20 --src /home/rubys/ruby-bench/benchmarks/lobsters |
|---|---|
| source | /home/rubys/ruby-bench/benchmarks/lobsters |
| commit | 9be4046e8e7f365dfc8cd44163d67f3e0bfa0c3a |
| fixture commit | ef59d05987f925b2c72f4ab719f648e6b260338c |
| captured | 2026-10-12T09:12:28Z |
| database | file:lobsters_bench?mode=memory&cache=shared |
| story / comment | enr7ye / 6srqij |
| roundhouse ruby | ruby 4.0.5 (2026-05-20 revision 64336ffd0e) +YJIT +PRISM [x86_64-linux] |
|---|---|
| rails ruby | ruby 4.0.5 (2026-05-20 revision 64336ffd0e) +YJIT +PRISM [x86_64-linux] |
| rails | 8.1.1 |
| spinel (AOT) | spinel 2026.09.12+8465 (6766a151e) [gcc 13.3.0 (cc)] |
|---|---|
| C compiler | cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 |
| host | showcase.party |
|---|---|
| cpu | AMD Ryzen 5 3600 6-Core Processor |
| cores | 12 |
| kernel | Linux 6.8.0-139-generic |
| visits/iter | 106 |
|---|---|
| warmup | 15 |
| roundhouse iters | 53 |
| rails iters | 20 |