Server benchmark: Horizon against vanilla, Paper and Fabric + Lithium, equal work (2026-10-19)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-19 08:25:07 +02:00
parent 731b4256db
commit a64877f1a1
7 changed files with 1612 additions and 18 deletions
+18 -17
View File
@@ -297,25 +297,26 @@ docker run -d --name horizon -p 25565:25565 --stop-timeout 180 \
## 10. How fast is it
The latest bot benchmark against vanilla 26.3 is in
[benchmarks/server-2026-10-17](https://github.com/ludovic111/horizon/blob/main/benchmarks/server-2026-10-17/README.md).
It ran on `main` at `7bbbf6e9` (in release v2026.10.17.17), on a 4-thread laptop CPU (i7-7500U), with the bots
on another machine. Earlier measurements are in [docs/server.md](https://github.com/ludovic111/horizon/blob/main/docs/server.md).
In short:
The latest bot benchmark compares Horizon with vanilla 26.3, Paper and Fabric + Lithium:
[benchmarks/server-four-way-2026-10-19](https://github.com/ludovic111/horizon/blob/main/benchmarks/server-four-way-2026-10-19/README.md).
It ran release v2026.10.19 on a 4-thread laptop CPU (i7-7500U), with 1 to 50 players walking, exploring and
standing around spawn, the bots on another machine. All four servers did the same work. Earlier
measurements are in [docs/server.md](https://github.com/ludovic111/horizon/blob/main/docs/server.md). In
short:
- **Memory:** 0.8–0.9 GB with up to 100 players, and 1.4 GB at most with 100 players flying out fast. Vanilla
uses 3.4–4.0 GB with its 4 GB heap.
- **Start:** a new world is ready in 9–10 s, against 15–17 s for vanilla.
- **Same work** (players exploring at the same pace, so both servers send the same chunks): Horizon's average
tick is 44–81 % shorter than vanilla's with 1 to 50 players, and its 95th percentile is lower too.
- **Players walking around spawn:** Horizon's average tick is shorter at every count. With 25 and 50 players,
its slowest ticks (95th percentile) are a little longer than vanilla's (31 against 28 ms, 60 against 56 ms).
- **100 players** walking: Horizon keeps 15.8 TPS (63 ms ticks). Vanilla's watchdog stopped it on this machine.
- **Players flying out as fast as they can:** with 10 and 25 players vanilla's average tick is a little shorter
than Horizon's, but Horizon sends 1.6–1.8 times as many new chunks. Vanilla's watchdog stopped it at 50 and 100.
- **Memory:** 0.7 GB with one player and 1.1 GB with 50, against 3.4 to 4.5 GB for the Java servers
(each with a 4 GB heap): 3.8 to 4.8 times less.
- **Start:** ready in 8 to 9 s, against 15 s for vanilla, 17 s for Fabric and 19 to 22 s for Paper.
- **CPU:** from 10 players up, the least of the four (1.4 cores at 50, against Paper's 2.1 and Fabric's 2.4).
- **Average tick:** Paper's is shorter at every count (10.3 against 13.7 ms with one player, 46.9 against
47.8 with 50), and Fabric + Lithium's with 1 and 10 players. Horizon's is shorter than vanilla's (equal with 10), and
than Fabric's from 25 players up.
- **Slow ticks:** from 10 players up, Horizon's slowest ticks (99th percentile) are the shortest of the
four (73 ms with 50, against 110 for Paper and 174 for Fabric).
- **50 players:** Horizon and Paper keep 20 TPS, Fabric + Lithium drops to 17, and vanilla's watchdog
stopped it.
On this 4-thread machine Horizon held 20 TPS with 50 players in every scenario, and 15.8–19 TPS with 100. For more
than 50 active players, give it more cores.
For more than 50 active players, give it more cores.
## When something goes wrong
+14 -1
View File
@@ -521,6 +521,20 @@ reproducible by anyone, and show the same gameplay on both sides.
- Horizon's RSS was 4.1 to 4.9 times smaller (1.03 GB at 50).
- Served in full, vanilla's walking bots got 5400 to 6100 chunks each, against 640 to 1100 in the first
run. That is why vanilla held 50 bots there and not here.
- **Four servers, equal work (2026-10-19,** `benchmarks/server-four-way-2026-10-19/`). The same load
against vanilla, Paper (build 205, its defaults except the connection throttle, which refused bots that
share an address) and vanilla on Fabric with Lithium. Horizon was release v2026.10.19, which spawns mobs
and ticks blocks around every player as vanilla does (#950, #931), so it now does vanilla's work away
from spawn too. Results, on the ThinkPad (the desktop didn't wake):
- The work was equal on all four at every count (chunks a second within 4 %).
- Horizon's RSS was 3.8 to 4.8 times smaller (0.72 to 1.11 GB). It started in 8.2 to 8.5 s, against
14.7 to 22.4 s for the Java servers. From 10 bots up it used the least CPU.
- Average tick: Paper was ahead of Horizon at every count (10.3 against 13.7 ms at 1 bot, 28.3 against
30.9 at 25, 46.9 against 47.8 at 50). Fabric + Lithium was ahead at 1 and 10 bots (12.5 and 20.2
against 13.7 and 22.9), behind at 25, and fell to 17.2 TPS at 50. Vanilla was slowest, and its
watchdog stopped it at 50.
- Horizon's P99 was the lowest from 10 bots up (73 ms at 50, against Paper's 110 and Fabric's 174), and
its worst single P99 the lowest at every count.
- **Ownership.** perf-server-1 owns making the tick faster. This work only measures it, files what it finds,
and fixes startup, RAM and packaging.
@@ -555,7 +569,6 @@ machine, then published in `benchmarks/`; and item 5.
- a server-only prepare without a JDK;
- updates and rollback (the design is above; they ship right after);
- a Windows service, hot reload, modpacks in the panel;
- Paper and Fabric + Lithium in the benchmark;
- the website's "host a server" page;
- retiring `tools/server.py` and `docs/server-quickstart.txt` (once the benchmark replaces them).