| @@ -46,9 +46,9 @@ Four small programs, written idiomatically in each language ([`tests/compare`](t |
| 46 | 46 | | language | wall | instructions | peak memory | executable (stripped) | |
| 47 | 47 | |---|---:|---:|---:|---:| |
| 48 | 48 | | Haskell (GHC) | 0.05 s | 0.22G | 3 MB | 956 KB | |
| 49 | +| **Louise** | **0.05 s** | **0.47G** | **6 MB** | **466 KB** | |
| 49 | 50 | | Go | 0.08 s | 0.27G | 34 MB | 1.5 MB | |
| 50 | 51 | | Rust | 0.09 s | 0.15G | 17 MB | 337 KB | |
| 51 | | −| **Louise** | **0.31 s** | **2.66G** | **36 MB** | **471 KB** | |
| 52 | 52 | | Java | 0.90 s | 12.49G | 449 MB | runtime | |
| 53 | 53 | | Node | 1.36 s | 10.37G | 162 MB | runtime | |
| 54 | 54 | | Python | 1.54 s | 10.46G | 130 MB | runtime | |
| @@ -62,7 +62,7 @@ Four small programs, written idiomatically in each language ([`tests/compare`](t |
| 62 | 62 | | Haskell (GHC) | 0.07 s | 0.42G | 3 MB | 956 KB | |
| 63 | 63 | | Go | 0.07 s | 0.43G | 2 MB | 1.5 MB | |
| 64 | 64 | | Java | 0.10 s | 0.45G | 36 MB | runtime | |
| 65 | | −| **Louise** | **0.15 s** | **1.40G** | **6 MB** | **460 KB** | |
| 65 | +| **Louise** | **0.12 s** | **0.95G** | **6 MB** | **459 KB** | |
| 66 | 66 | | Node | 0.32 s | 1.90G | 55 MB | runtime | |
| 67 | 67 | | Gleam (on node) | 0.35 s | 2.05G | 58 MB | runtime | |
| 68 | 68 | | Python | 1.56 s | 15.81G | 8 MB | runtime | |
| @@ -73,7 +73,7 @@ Four small programs, written idiomatically in each language ([`tests/compare`](t |
| 73 | 73 | |---|---:|---:|---:|---:| |
| 74 | 74 | | Haskell (GHC) | 0.15 s | 0.99G | 7 MB | 957 KB | |
| 75 | 75 | | Java | 0.26 s | 1.05G | 148 MB | runtime | |
| 76 | | −| **Louise** | **0.31 s** | **2.32G** | **8 MB** | **467 KB** | |
| 76 | +| **Louise** | **0.30 s** | **2.34G** | **8 MB** | **468 KB** | |
| 77 | 77 | | Node | 0.44 s | 2.62G | 85 MB | runtime | |
| 78 | 78 | | Rust | 0.68 s | 5.69G | 5 MB | 337 KB | |
| 79 | 79 | | Go | 0.79 s | 6.00G | 11 MB | 1.5 MB | |
| @@ -98,12 +98,12 @@ Before the unboxing milestone (#190) the same loop took 653M instructions and 83 |
| 98 | 98 | A release build of hello world is 387 KB: a static executable with the actor scheduler, the allocator and the runtime ([ADR 0042](docs/adr/0042-smaller-release-binaries.md)). |
| 99 | 99 | |
| 100 | 100 | What the numbers say: |
| 101 | | −- **Calls and arithmetic:** Louise is about 4–5× slower than Rust and 2× slower than GHC on a call-heavy loop, and faster than Node. This milestone (#190–#193) cut `fib`'s instructions by 3% and `arith`'s by 26% — preemption is now counted only where a function can loop, and provably-small integer arithmetic skips its checks; the rest of the gap is the tagged value representation. Devirtualising trait calls (#192) is next. |
| 101 | +- **Calls and arithmetic:** `Int`-heavy functions now run on unboxed machine integers (ADR 0045 Revision 2): a worker keeps raw `int64`s in registers and tags only at the boundary, bailing to the boxed path on overflow so promote-to-bigint semantics are exact. `fib`'s instructions fell by a third (1.40G → 0.95G): Louise is now about 3× Rust and 2.3× GHC on a call-heavy loop, and nearly 3× faster than Node. The remaining gap is per-call preemption and yield checks (#193) and devirtualising trait calls (#192) is next. |
| 102 | 102 | - **Float arithmetic:** a float loop's arithmetic runs on raw doubles, allocating nothing: 31M instructions, about twice Rust's (15M) and 1.3–1.4× Go's and GHC's, and an order of magnitude fewer than Node or Java. Until #190 every `+` allocated a heap block (the same loop: 653M instructions, 83 ms). |
| 103 | | −- **List pipelines:** the Core optimiser (#195–#200) fuses `range |> map |> filter |> fold` into one loop that allocates nothing per element — against the pre-optimiser build, the pipeline is 26% fewer instructions, 23% less wall clock, and uses **45% less peak memory** (the intermediate lists are gone). Louise is now ahead of Node and Python by a wide margin and closes on Rust and GHC; they use arrays and fusion respectively. `std/iter`'s lazy iterators do the same without rewrite rules (#199). |
| 103 | +- **List pipelines:** the Core optimiser (#195–#200) fuses `range |> map |> filter |> fold` into one loop that allocates nothing per element — and now does so inside `if`/`match` arms too, which the benchmark's own pipeline had been missing (it built both intermediate lists: 2.66G instructions). Fused, the pipeline is 0.47G instructions (−82%) and 6 MB peak (−83%): Louise ties GHC's list fusion on wall clock and is ahead of Rust's collecting iterators, though Rust's unboxed `Vec` still leads on instructions (0.15G). `std/iter`'s lazy iterators fuse without rewrite rules (#199). |
| 104 | 104 | - **Allocation-heavy code:** reference counting with in-place reuse (Perceus) is faster than Rust's `Box` with the system allocator and close to GHC's garbage collector, in a fraction of Node's memory — and with a fraction of the instructions of everything but Haskell. |
| 105 | 105 | |
| 106 | | −Measured on 2026-10-15, in the pinned container ([`tests/compare/Containerfile`](tests/compare/Containerfile)), on one machine: Intel Core Ultra 7 155H, with rustc 1.99, GHC, Go, OpenJDK, Node and Python from Fedora 44. Instructions are user-space, counted once per program; wall clock is best of 5. Small programs show orders of magnitude, not a ranking. |
| 106 | +Measured in the pinned container ([`tests/compare/Containerfile`](tests/compare/Containerfile)), on one machine: Intel Core Ultra 7 155H, with rustc 1.99, GHC, Go, OpenJDK, Node and Python from Fedora 44. The other languages are from 2026-10-15; the Louise rows are re-measured on 2026-10-19 (their instruction counts on the host — rootless containers cannot open perf events on this kernel — with the same binaries and the same user-space event). Instructions are user-space, counted once per program; wall clock is best of 5. Small programs show orders of magnitude, not a ranking. |
| 107 | 107 | |
| 108 | 108 | ## Getting started |
| 109 | 109 | |