Language benchmark tables are popular and mostly misleading. Mystic Coders recently published Kotlin Keeps Up With Rust, which does the exercise more carefully than most. Its result matters to anyone who runs code on the JVM, and Vary does. James Ward also shared it with a video on X.
What was measured
David Heinemeier Hansson has been porting Campfire, the open-source chat app from 37signals, to many languages with AI agents, and publishing a table of requests per second for the room page. The Mystic Coders author thinks such a table mostly measures how much attention each port got. Rails went from 230 to 4,101 requests per second in a day without changing language.
To test that, the author wrote a Kotlin port of the Rust port. It runs on the JVM or as a GraalVM native image, reads the same SQLite database and cookies, and serves the room page. Every response had to match the Rust port byte for byte, headers included, using the verification harness. The port is about 22,000 lines of Kotlin and took roughly a day to build with an AI coding agent.
The tests ran on small AMD EPYC servers in the cloud, one app at a time, with a separate load generator. Connection counts went from 1 to 4,096, each point had three alternating repetitions, and the medians were reported. Runs that deviated sharply were thrown out. The author also listed what was left unmeasured: writes, WebSockets, search, attachments, TLS and production conditions.
What it found
On one core, the JVM beat Rust at every connection count, at about 102 to 122 percent of its throughput with no response cache. On two cores it reached 125 to 148 percent. After a response cache was added to all the implementations the order held: 103 to 136 percent on one core and 100 to 127 percent on two. At 64 connections on two cores the JVM used about 184 microseconds of CPU per request. Rust used about 250.
The native image landed closer to level, between 84 and 125 percent depending on the setup.
Where Rust still wins
The article is just as direct about the other half.
| Measure | Rust | JVM |
|---|---|---|
| Idle memory | 15 to 17 MB | 117 to 170 MB |
| Memory under load | small | 170 to 500 MB |
| Time to first answer | about 175 ms | about 1.5 s |
| p99 during a cold start at 4,000 requests per second | 5 ms | 315 to 389 ms |
The JIT compiler needs time to learn the program. Once it has, steady-state throughput is excellent. Before that, latency is worse and the memory floor is higher. The native image closes most of the gap, starting in 165 ms and idling near 29 MB, though it needs a heap cap to behave under heavy load.
What this means for Vary
Vary compiles to JVM bytecode, which is also why its mutation testing is fast. A Vary program goes through the same class loader, the same JIT and the same garbage collector as the Kotlin in that comparison, so a result about the JVM is a result about the platform Vary runs on.
It says nothing about Vary itself. No Vary program was in the benchmark, and a Vary service will have its own numbers, shaped by how it allocates and what it calls. The fair reading is a narrow one. The belief that managed runtimes are slow by nature did not hold up against realistic server work, and the costs that remain are specific: memory, startup and warmup.
Those are also the costs to plan around when deploying. A service that stays up for days pays for warmup once. A short-lived command pays every time.
The method is the good part
The ratios are less interesting than the discipline behind them. Byte-identical responses meant nobody could win by doing less work. Alternating repetitions and medians kept cloud noise from picking the winner. The author found that logging inside Docker cost about 30 percent of throughput, and that the Rust port's small default listen queue stalled the 4,096-connection runs, with the worst request taking 27.5 seconds. Both were changed and disclosed. Leave either detail out and the headline numbers would be wrong, in opposite directions.
Any performance claim about Vary, mutation testing speed included, should be held to the same bar: a stated machine, a stated workload, a correctness check on the output, and a list of what was left out. The performance notes apply the same rules to Vary's own numbers.