| index 57a8c00..60fd557 100644 |
| --- a/report/site/index.html |
| +++ b/report/site/index.html |
| @@ -142,7 +142,7 @@ dt { color: var(--muted); } dd { margin: 0; color: var(--ink-2); } |
| <div class="card"> |
| <h3>Page loads: where it slows down</h3> |
| <p class="note">The fewest simultaneous connections from which adding more never raised throughput by 10% or more.</p> |
| -<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Page loads: where it slows down"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H154.7Q158.7 15.0 158.7 19.0V27.0Q158.7 31.0 154.7 31.0H150.0Z"><title>Go: 8 connections</title></path><text class="value" x="164.7" y="28">8 connections</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H163.4Q167.4 45.0 167.4 49.0V57.0Q167.4 61.0 163.4 61.0H150.0Z"><title>Go + Rastrillo: 16 connections</title></path><text class="value" x="173.4" y="58">16 connections</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H215.6Q219.6 75.0 219.6 79.0V87.0Q219.6 91.0 215.6 91.0H150.0Z"><title>Rust: 64 connections</title></path><text class="value" x="225.6" y="88">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H180.8Q184.8 105.0 184.8 109.0V117.0Q184.8 121.0 180.8 121.0H150.0Z"><title>Zig: 32 connections</title></path><text class="value" x="190.8" y="118">32 connections</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H215.6Q219.6 135.0 219.6 139.0V147.0Q219.6 151.0 215.6 151.0H150.0Z"><title>OCaml: 64 connections</title></path><text class="value" x="225.6" y="148">64 connections · Carloku turned some requests away from 256</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H180.8Q184.8 165.0 184.8 169.0V177.0Q184.8 181.0 180.8 181.0H150.0Z"><title>Haskell: 32 connections</title></path><text class="value" x="190.8" y="178">32 connections</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H215.6Q219.6 195.0 219.6 199.0V207.0Q219.6 211.0 215.6 211.0H150.0Z"><title>Swift: 64 connections</title></path><text class="value" x="225.6" y="208">64 connections · Carloku turned some requests away from 512</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H180.8Q184.8 225.0 184.8 229.0V237.0Q184.8 241.0 180.8 241.0H150.0Z"><title>Nim: 32 connections</title></path><text class="value" x="190.8" y="238">32 connections</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H215.6Q219.6 255.0 219.6 259.0V267.0Q219.6 271.0 215.6 271.0H150.0Z"><title>Spinel: 64 connections</title></path><text class="value" x="225.6" y="268">64 connections · Carloku turned some requests away from 128</text></svg> |
| +<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Page loads: where it slows down"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H154.7Q158.7 15.0 158.7 19.0V27.0Q158.7 31.0 154.7 31.0H150.0Z"><title>Go: 8 connections</title></path><text class="value" x="164.7" y="28">8 connections</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H163.4Q167.4 45.0 167.4 49.0V57.0Q167.4 61.0 163.4 61.0H150.0Z"><title>Go + Rastrillo: 16 connections</title></path><text class="value" x="173.4" y="58">16 connections</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H215.6Q219.6 75.0 219.6 79.0V87.0Q219.6 91.0 215.6 91.0H150.0Z"><title>Rust: 64 connections</title></path><text class="value" x="225.6" y="88">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H180.8Q184.8 105.0 184.8 109.0V117.0Q184.8 121.0 180.8 121.0H150.0Z"><title>Zig: 32 connections</title></path><text class="value" x="190.8" y="118">32 connections</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H215.6Q219.6 135.0 219.6 139.0V147.0Q219.6 151.0 215.6 151.0H150.0Z"><title>OCaml: 64 connections</title></path><text class="value" x="225.6" y="148">64 connections · Carloku turned some requests away from 256</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H180.8Q184.8 165.0 184.8 169.0V177.0Q184.8 181.0 180.8 181.0H150.0Z"><title>Haskell: 32 connections</title></path><text class="value" x="190.8" y="178">32 connections</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H215.6Q219.6 195.0 219.6 199.0V207.0Q219.6 211.0 215.6 211.0H150.0Z"><title>Swift: 64 connections</title></path><text class="value" x="225.6" y="208">64 connections · requests started failing from 512</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H180.8Q184.8 225.0 184.8 229.0V237.0Q184.8 241.0 180.8 241.0H150.0Z"><title>Nim: 32 connections</title></path><text class="value" x="190.8" y="238">32 connections</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H215.6Q219.6 255.0 219.6 259.0V267.0Q219.6 271.0 215.6 271.0H150.0Z"><title>Spinel: 64 connections</title></path><text class="value" x="225.6" y="268">64 connections · Carloku turned some requests away from 128</text></svg> |
| </div> |
| |
| <div class="card"> |
| @@ -154,7 +154,7 @@ dt { color: var(--muted); } dd { margin: 0; color: var(--ink-2); } |
| <div class="card"> |
| <h3>Toggles: where it slows down</h3> |
| <p class="note">The same rule as for page loads.</p> |
| -<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Toggles: where it slows down"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H161.5Q165.5 15.0 165.5 19.0V27.0Q165.5 31.0 161.5 31.0H150.0Z"><title>Go: 32 connections</title></path><text class="value" x="171.5" y="28">32 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H153.9Q157.8 45.0 157.8 48.9V57.1Q157.8 61.0 153.9 61.0H150.0Z"><title>Go + Rastrillo: 16 connections</title></path><text class="value" x="163.8" y="58">16 connections</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H177.0Q181.0 75.0 181.0 79.0V87.0Q181.0 91.0 177.0 91.0H150.0Z"><title>Rust: 64 connections</title></path><text class="value" x="187.0" y="88">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H177.0Q181.0 105.0 181.0 109.0V117.0Q181.0 121.0 177.0 121.0H150.0Z"><title>Zig: 64 connections</title></path><text class="value" x="187.0" y="118">64 connections</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H177.0Q181.0 135.0 181.0 139.0V147.0Q181.0 151.0 177.0 151.0H150.0Z"><title>OCaml: 64 connections</title></path><text class="value" x="187.0" y="148">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H161.5Q165.5 165.0 165.5 169.0V177.0Q165.5 181.0 161.5 181.0H150.0Z"><title>Haskell: 32 connections</title></path><text class="value" x="171.5" y="178">32 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H208.0Q212.0 195.0 212.0 199.0V207.0Q212.0 211.0 208.0 211.0H150.0Z"><title>Swift: 128 connections</title></path><text class="value" x="218.0" y="208">128 connections</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H208.0Q212.0 225.0 212.0 229.0V237.0Q212.0 241.0 208.0 241.0H150.0Z"><title>Nim: 128 connections</title></path><text class="value" x="218.0" y="238">128 connections · Carloku turned some requests away from 256</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H177.0Q181.0 255.0 181.0 259.0V267.0Q181.0 271.0 177.0 271.0H150.0Z"><title>Spinel: 64 connections</title></path><text class="value" x="187.0" y="268">64 connections · Carloku turned some requests away from 256</text></svg> |
| +<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Toggles: where it slows down"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H163.4Q167.4 15.0 167.4 19.0V27.0Q167.4 31.0 163.4 31.0H150.0Z"><title>Go: 32 connections</title></path><text class="value" x="173.4" y="28">32 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H154.7Q158.7 45.0 158.7 49.0V57.0Q158.7 61.0 154.7 61.0H150.0Z"><title>Go + Rastrillo: 16 connections</title></path><text class="value" x="164.7" y="58">16 connections</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H180.8Q184.8 75.0 184.8 79.0V87.0Q184.8 91.0 180.8 91.0H150.0Z"><title>Rust: 64 connections</title></path><text class="value" x="190.8" y="88">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H180.8Q184.8 105.0 184.8 109.0V117.0Q184.8 121.0 180.8 121.0H150.0Z"><title>Zig: 64 connections</title></path><text class="value" x="190.8" y="118">64 connections</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H180.8Q184.8 135.0 184.8 139.0V147.0Q184.8 151.0 180.8 151.0H150.0Z"><title>OCaml: 64 connections</title></path><text class="value" x="190.8" y="148">64 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H163.4Q167.4 165.0 167.4 169.0V177.0Q167.4 181.0 163.4 181.0H150.0Z"><title>Haskell: 32 connections</title></path><text class="value" x="173.4" y="178">32 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H215.6Q219.6 195.0 219.6 199.0V207.0Q219.6 211.0 215.6 211.0H150.0Z"><title>Swift: 128 connections</title></path><text class="value" x="225.6" y="208">128 connections</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H215.6Q219.6 225.0 219.6 229.0V237.0Q219.6 241.0 215.6 241.0H150.0Z"><title>Nim: 128 connections</title></path><text class="value" x="225.6" y="238">128 connections · requests started failing from 256</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H180.8Q184.8 255.0 184.8 259.0V267.0Q184.8 271.0 180.8 271.0H150.0Z"><title>Spinel: 64 connections</title></path><text class="value" x="190.8" y="268">64 connections · requests started failing from 256</text></svg> |
| </div> |
| |
| <div class="card"> |
| @@ -163,6 +163,12 @@ dt { color: var(--muted); } dd { margin: 0; color: var(--ink-2); } |
| <svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Peak page loads per second, after the writes"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H257.5Q261.5 15.0 261.5 19.0V27.0Q261.5 31.0 257.5 31.0H150.0Z"><title>Go: 343</title></path><text class="value" x="267.5" y="28">343</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H255.2Q259.2 45.0 259.2 49.0V57.0Q259.2 61.0 255.2 61.0H150.0Z"><title>Go + Rastrillo: 336</title></path><text class="value" x="265.2" y="58">336</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H599.8Q603.8 75.0 603.8 79.0V87.0Q603.8 91.0 599.8 91.0H150.0Z"><title>Rust: 1,398</title></path><text class="value" x="609.8" y="88">1,398</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H593.6Q597.6 105.0 597.6 109.0V117.0Q597.6 121.0 593.6 121.0H150.0Z"><title>Zig: 1,379</title></path><text class="value" x="603.6" y="118">1,379</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H387.1Q391.1 135.0 391.1 139.0V147.0Q391.1 151.0 387.1 151.0H150.0Z"><title>OCaml: 743</title></path><text class="value" x="397.1" y="148">743</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H272.8Q276.8 165.0 276.8 169.0V177.0Q276.8 181.0 272.8 181.0H150.0Z"><title>Haskell: 391</title></path><text class="value" x="282.8" y="178">391</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H318.6Q322.6 195.0 322.6 199.0V207.0Q322.6 211.0 318.6 211.0H150.0Z"><title>Swift: 532</title></path><text class="value" x="328.6" y="208">532</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H626.0Q630.0 225.0 630.0 229.0V237.0Q630.0 241.0 626.0 241.0H150.0Z"><title>Nim: 1,479</title></path><text class="value" x="636.0" y="238">1,479</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H375.1Q379.1 255.0 379.1 259.0V267.0Q379.1 271.0 375.1 271.0H150.0Z"><title>Spinel: 706</title></path><text class="value" x="385.1" y="268">706</text></svg> |
| </div> |
| |
| +<div class="card"> |
| +<h3>Page loads after the writes: where it slows down</h3> |
| +<p class="note">The same rule, for the read ramp run straight after the writes.</p> |
| +<svg class="chart" viewBox="0 0 680 286" role="img" aria-label="Page loads after the writes: where it slows down"><line class="axis" x1="150" x2="150" y1="8" y2="278"/><text class="label" x="140" y="28">Go</text><path class="s1" d="M150.0 15.0H152.2Q154.3 15.0 154.3 17.2V28.8Q154.3 31.0 152.2 31.0H150.0Z"><title>Go: 8 connections</title></path><text class="value" x="160.3" y="28">8 connections</text><text class="label" x="140" y="58">Go + Rastrillo</text><path class="s1" d="M150.0 45.0H154.7Q158.7 45.0 158.7 49.0V57.0Q158.7 61.0 154.7 61.0H150.0Z"><title>Go + Rastrillo: 16 connections</title></path><text class="value" x="164.7" y="58">16 connections</text><text class="label" x="140" y="88">Rust</text><path class="s1" d="M150.0 75.0H215.6Q219.6 75.0 219.6 79.0V87.0Q219.6 91.0 215.6 91.0H150.0Z"><title>Rust: 128 connections</title></path><text class="value" x="225.6" y="88">128 connections</text><text class="label" x="140" y="118">Zig</text><path class="s1" d="M150.0 105.0H163.4Q167.4 105.0 167.4 109.0V117.0Q167.4 121.0 163.4 121.0H150.0Z"><title>Zig: 32 connections</title></path><text class="value" x="173.4" y="118">32 connections</text><text class="label" x="140" y="148">OCaml</text><path class="s1" d="M150.0 135.0H163.4Q167.4 135.0 167.4 139.0V147.0Q167.4 151.0 163.4 151.0H150.0Z"><title>OCaml: 32 connections</title></path><text class="value" x="173.4" y="148">32 connections · Carloku turned some requests away from 128</text><text class="label" x="140" y="178">Haskell</text><path class="s1" d="M150.0 165.0H152.2Q154.3 165.0 154.3 167.2V178.8Q154.3 181.0 152.2 181.0H150.0Z"><title>Haskell: 8 connections</title></path><text class="value" x="160.3" y="178">8 connections</text><text class="label" x="140" y="208">Swift</text><path class="s1" d="M150.0 195.0H180.8Q184.8 195.0 184.8 199.0V207.0Q184.8 211.0 180.8 211.0H150.0Z"><title>Swift: 64 connections</title></path><text class="value" x="190.8" y="208">64 connections</text><text class="label" x="140" y="238">Nim</text><path class="s1" d="M150.0 225.0H163.4Q167.4 225.0 167.4 229.0V237.0Q167.4 241.0 163.4 241.0H150.0Z"><title>Nim: 32 connections</title></path><text class="value" x="173.4" y="238">32 connections</text><text class="label" x="140" y="268">Spinel</text><path class="s1" d="M150.0 255.0H180.8Q184.8 255.0 184.8 259.0V267.0Q184.8 271.0 180.8 271.0H150.0Z"><title>Spinel: 64 connections</title></path><text class="value" x="190.8" y="268">64 connections · requests started failing from 256</text></svg> |
| +</div> |
| + |
| <div class="card"> |
| <h3>Memory at rest</h3> |
| <p class="note">Resident memory just after start, measured on our own machine because Carloku doesn't show members memory figures.</p> |
| @@ -288,7 +294,7 @@ dt { color: var(--muted); } dd { margin: 0; color: var(--ink-2); } |
| <ul><li><strong>The same starting point.</strong> Every builder got the same brief, the same rules for routes and forms, TodoMVC's own page and styles, and the same tests. It chose its own libraries.<li><strong>The same tests.</strong> TodoMVC's 29 standard tests, run with JavaScript on and again with it off, plus checks for unsafe input, foreign characters, very long titles, one visitor reaching another's list, and a screenshot comparison with TodoMVC's own page.<li><strong>One build each.</strong> Opus 5.5 built each app in a single unattended session, with a four-hour limit.<li><strong>One round of review.</strong> Astra reviewed each app for bugs, missed requirements and security problems, and the same builder fixed what it found. A second round was allowed only for security problems; Zig and Nim needed one.<li><strong>Readability.</strong> Fable scored each app's code out of 10 three times, without knowing which app it was. We show the median.<li><strong>Speed.</strong> Measured from one test machine over the internet, one app at a time, each on a fresh copy of the app with an empty database. Time to first byte is the median of 30 page loads. The load test doubles the number of simultaneous connections from 1 upwards, 10 seconds per step, first loading a 50-item list, then ticking a to-do on and off, then loading the list again.<li><strong>Waking up.</strong> Carloku puts an app to sleep after 15 quiet minutes. We timed the first request after each app fell asleep, three times.<li><strong>Builds.</strong> Every app is built for the 64-bit ARM servers Carloku runs on. A cold build compiles every library from scratch, once per app. A warm build and a one-line change are each the median of three.<li><strong>Cost.</strong> What each build and its fixes cost at list price, from the builders' own session records.</ul> |
| |
| <h2>What this does and doesn't show</h2> |
| -<ul><li><strong>The network is in every speed number.</strong> Requests travelled from our test machine to Carloku over the internet, and the base delay swung between about 17 and 37 milliseconds during the runs. Small differences in first-byte times mean little.<li><strong>Carloku caps traffic at the edge.</strong> When a request reaches an edge server that isn't the one running the app, Carloku lets at most 64 such requests be in flight at once and turns the rest away with a "try again shortly" response. Above 64 connections, the load test partly measures that limit, and whether it applied depended on how our traffic was routed at the time.<li><strong>Every app ran on Carloku's default size.</strong> Throughput limits reflect that size, not what each language could do on a bigger server.<li><strong>One build per language.</strong> Another session with the same model could produce a different app, faster or slower.<li><strong>Readability scores cluster.</strong> Most apps scored 8 out of 10. Treat the score as a rough signal.<li><strong>Three apps were built under emulation.</strong> OCaml, Haskell and Spinel had no straightforward way to compile for ARM from our x86 machine, so they were built inside an emulated ARM system. Their build times are much longer for that reason, and don't compare with the others.<li><strong>Spinel restarted under heavy load.</strong> Its server process exited during the load test and Carloku started it again each time.<li><strong>Mojo was dropped.</strong> Mojo can't produce a single self-contained program file, which is what Carloku runs, so we replaced it with Nim. The platform question is filed as <a href="https://amadan.net/carlos/platform/-/discussion/360">an idea</a>.<li><strong>Fresh copies for measuring.</strong> To give every app an empty database, each was measured on a new copy of itself, which is the one the live links point to.</ul> |
| +<ul><li><strong>The network is in every speed number.</strong> Requests travelled from our test machine to Carloku over the internet, and the base delay swung between about 17 and 37 milliseconds during the runs. Small differences in first-byte times mean little.<li><strong>Carloku caps traffic at the edge.</strong> When a request reaches an edge server that isn't the one running the app, Carloku lets at most 64 such requests be in flight at once and turns the rest away with a "try again shortly" response. Above 64 connections, the load test partly measures that limit, and whether it applied depended on how our traffic was routed at the time.<li><strong>Some apps failed outright at very high load.</strong> At 256 or 512 connections, Swift, Nim and Spinel stopped answering some requests, which Carloku's edge reported as errors (502) rather than turning them away. The charts mark where that started.<li><strong>Every app ran on Carloku's default size.</strong> Throughput limits reflect that size, not what each language could do on a bigger server.<li><strong>One build per language.</strong> Another session with the same model could produce a different app, faster or slower.<li><strong>Readability scores cluster.</strong> Most apps scored 8 out of 10. Treat the score as a rough signal.<li><strong>Three apps were built under emulation.</strong> OCaml, Haskell and Spinel had no straightforward way to compile for ARM from our x86 machine, so they were built inside an emulated ARM system. Their build times are much longer for that reason, and don't compare with the others.<li><strong>Spinel restarted under heavy load.</strong> Its server process exited during the load test and Carloku started it again each time.<li><strong>Mojo was dropped.</strong> Mojo can't produce a single self-contained program file, which is what Carloku runs, so we replaced it with Nim. The platform question is filed as <a href="https://amadan.net/carlos/platform/-/discussion/360">an idea</a>.<li><strong>Fresh copies for measuring.</strong> To give every app an empty database, each was measured on a new copy of itself, which is the one the live links point to.</ul> |
| |
| </main> |
| </body> |