Zyth
Measured, with the losses too

Python's ease.
Systems speed.

Zyth compiles your program to machine code with LLVM and ships it with its runtime in one file. Here is how that compares to Go, Rust and Java on the same six programs, and where Zyth is still behind.

15x

faster start than the JVM: 1.6 ms against 24.2.

3to 8x

less memory than Java: 5 to 26 MB against 38 to 82.

7of 7

programs faster than Go, built for release.

1.04x

Rust's start-up time on a Mac: 1.41 ms against 1.36.

Milliseconds per run, lower is better

ZythRustGoJava
empty
1.6 ms
1.7 ms
1.9 ms
24.2 ms
fib
3.2 ms
3.4 ms
5.3 ms
27.4 ms
words
21.1 ms
21.2 ms
24.4 ms
70 ms
sieve
5.7 ms
5.8 ms
7.4 ms
40.3 ms
text
25.3 ms
18.7 ms
37.8 ms
126 ms
structs
1.8 ms
1.9 ms
3.6 ms
55.2 ms
sort
18.7 ms
10.7 ms
71.9 ms
110.5 ms

Whole runs, best of 15, pinned to one core, Linux (WSL2), 2026-11-01. Zyth zyth build --release (LLVM, static runtime), Go 1.25, Rust 1.99 rustc -O, JDK 25.0.5 with 4 cores.

The numbers

ProgramWhat it doesZythRustGoJava
emptystart and exit1.61.71.924.2
fibrecursive fib(30)3.23.45.327.4
wordscount 300,000 words in a map21.121.224.470
sieveprimes in a 2M-element list5.75.87.440.3
textsplit and parse text lines25.318.737.8126
structsupdate a list of structs1.81.93.655.2
sortsort 300,000 numbers18.710.771.9110.5

Fastest in each row in green. Lower is better.

A web server against Go and Node

The same JSON service in Zyth (zyth.net, built with zyth build --release), Go's net/http and Node's http module. Each server pinned to 2 cores, the load generator on other cores, 64 connections, median of 5 runs of 10 seconds, no errors.

Server/json, requests/sp99parse a posted order, requests/sp99
Zyth288,0000.59 ms218,0000.74 ms
Go net/http189,0001.42 ms131,0002.05 ms
Node, 4 worker processes138,0001.2 ms93,0001.75 ms
Node, one process28,7004.1 ms19,4006.1 ms

JSON is read and written straight between text and Zyth values, and each connection is a task on Zyth's work-stealing pool. The standard library also has HTML templates escaped by default, cookies and signed sessions, SQLite built in, a PostgreSQL client with TLS, and migrations. A program that uses no database gets a runtime without them.

use zyth.net.{server}
use zyth.db.{sqlite}

let db = sqlite.open("notes.db")
db.migrate("migrations")

server(port: 8080) { app ->
    app.get("/api/posts") { _ -> db.query("select id, title from posts") }
}

GPU drawing against three.js

The asteroid belt of the solar system demo on its own: every frame, each asteroid's position on its orbit is computed and drawn. Zyth computes the positions as GPU tensors and draws them from the same memory. three.js (0.187, WebGL 2) runs it two ways: the usual one, a JavaScript loop that writes the positions and uploads them, and the orbit written by hand into its vertex shader. Windows 11, RTX 3090, Chrome 151, 1280 × 720, frame-rate cap off, frames counted over 10 seconds.

AsteroidsZyth, GPU tensorsthree.js, positions from JavaScriptthree.js, orbit in its shader
24,0001,791 fps776 fps6,792 fps
250,0001,116 fps74 fps5,273 fps
1,000,000519 fps19 fps1,941 fps
4,000,000176 fps4.6 fps280 fps

Zyth is 2.3 to 38 times faster than the usual three.js way, because nothing goes back through JavaScript. The hand-written shader is faster than both: it does the orbit math inside the draw, where Zyth runs it as a few small tensor kernels first. It only works because this motion has a formula that fits in a vertex shader; Zyth's version is ordinary tensor code that could be any computation, a physics step or a neural network.

Where Zyth is behind

Web servers. Zyth's server has no HTTP/2, no TLS of its own and no streaming bodies yet; put it behind a proxy such as Caddy or nginx. The numbers above are from one machine over loopback, on 2 cores; at 256 connections Zyth's lead over Go on posted orders drops from 1.67x to 1.29x.

Text and sorting against Rust. Rust splits text 1.35x faster and sorts 1.75x faster. Zyth's lists hold each number as a tagged value, so a sort moves four times Rust's memory. Storing lists of numbers as plain arrays is planned.

Java after warm-up. Java's JIT gets faster as a program runs. After 40 runs in the same JVM, Java counts words 3.3x faster than Zyth and splits text 2x faster. Short programs and tools favour Zyth; long-running servers have not been measured yet.

Deep call trees. On some recursive code Zyth is about 1.4x Rust. That gap is Zyth's guarantees, not its compiler: a C program with the same three checks runs within 3% of Zyth.

What Zyth checks that Rust's release build does not

  • Overflow is an error, never a wrong number. Rust's release build wraps silently.
  • Runaway recursion is an error at 3,000 calls, with the call chain, never a crashed process.
  • Every failure is a value the caller sees, kept in a register so it costs almost nothing.

What ships

LanguageWhat you copy to a serverPeak memory
Zythone 9.9 MB file5 to 26 MB
Javaa JAR plus a 43 MB runtime, or an 8 to 18 MB native image38 to 82 MB

Try the same programs

zyth build --release sort.zyth -o sort
./sort