[PR #985] [MERGED] Server benchmark: Horizon against vanilla, Paper and Fabric + Lithium, equal work #2965

Closed
opened 2026-11-02 16:00:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/985
Author: @ludovic111
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @ludovic111

Base: main ← Head: feat/server-bench-paper-fabric


📝 Commits (6)

  • 86cf154 server_bench: Paper and Fabric + Lithium, dev-only downloads checked against their hashes
  • 0001363 server_bench: one tested pattern for every server's Done line
  • 731b425 server_bench: turn Paper's connection throttle off (the bots share one address)
  • a64877f Server benchmark: Horizon against vanilla, Paper and Fabric + Lithium, equal work (2026-10-19)
  • aec5c20 hosting.md: rewrap the tick bullet
  • 6af77df Merge remote-tracking branch 'origin/main' into feat/server-bench-paper-fabric

📊 Changes

9 files changed (+1723 additions, -27 deletions)

View changed files

➕ benchmarks/server-four-way-2026-10-19/README.md (+167 -0)
➕ benchmarks/server-four-way-2026-10-19/load.txt (+870 -0)
➕ benchmarks/server-four-way-2026-10-19/report-25-50.json (+437 -0)
➕ benchmarks/server-four-way-2026-10-19/report-paper-10.json (+90 -0)
➕ benchmarks/server-four-way-2026-10-19/runs.jsonl (+16 -0)
📝 docs/hosting.md (+20 -19)
📝 docs/server.md (+14 -1)
📝 tests/test_server_bench.py (+18 -1)
📝 tools/server_bench.py (+91 -6)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

  • tools/server_bench.py runs Paper and Fabric + Lithium as well as Horizon and vanilla (--servers horizon,vanilla,paper,fabric). Both are dev-only downloads into .local/server-bench/jars, never committed or shipped:
    • Paper: the newest build for the pinned version, from PaperMC's download API, checked against its SHA-256. It runs with Paper's defaults except connection-throttle (off, because every bot comes from one address and the default 4 s throttle refused all but the first). Paperclip patches the pinned server jar (the owner's copy, put in its cache), so nothing is fetched from Mojang.
    • Fabric + Lithium: the pinned loader from packs/fabric.lock.json, and Lithium from packs/mods.lock.json, checked against its SHA-512 (plus Fabric API only if Lithium asks for it; it doesn't).
    • All Java servers get the same heap. The report records the Paper build and the loader and Lithium versions. One tested pattern now catches every server's Done line (Paper logs [time INFO]:).
  • Published benchmarks/server-four-way-2026-10-19/: the equal-work mixed-bot load (1/10/25/50 bots, view and simulation distance 10, explore at 0.8 blocks/s, 300 s warm-up and 300 s measured) on all four servers. docs/server.md section 9 and docs/hosting.md section 10 now quote it, and "Paper and Fabric + Lithium in the benchmark" leaves server.md's "Out (next)" list. The README quotes no server numbers, so it is unchanged.

Results (ThinkPad i7-7500U, 4 threads; the desktop didn't wake twice)

The work was equal on all four at every count (chunks/s within 4 %).

Bots MSPT Horizon / vanilla / Paper / Fabric+Lithium P99 RSS GB CPU %
1 13.7 / 17.3 / 10.3 / 12.5 27 / 36 / 23 / 33 0.72 / 3.44 / 4.24 / 3.43 46 / 55 / 32 / 46
10 22.9 / 22.9 / 20.6 / 20.2 53 / 56 / 56 / 56 0.92 / 3.71 / 4.07 / 3.73 67 / 101 / 74 / 94
25 30.9 / 37.4 / 28.3 / 31.4 72 / 83 / 90 / 93 1.01 / 3.94 / 4.16 / 3.88 99 / 191 / 124 / 174
50 47.8 / watchdog / 46.9 / 58.3 (17.2 TPS) 73 / – / 110 / 174 1.11 / – / 4.35 / 4.52 143 / – / 210 / 236

Where Horizon loses: Paper's average tick is shorter at every count (by a third with one player, 2 % at 50). Fabric + Lithium's is shorter at 1 and 10 bots, and Horizon only ties vanilla at 10. The Horizon numbers are well above 2026-10-18's (1.8 → 13.7 ms at 1 bot) because v2026.10.19 now spawns mobs and ticks blocks around every player, as vanilla does (#950, #931). The earlier build did less work than vanilla.

Where it wins: RSS is 3.8 to 4.8 times smaller. It starts in 8.2 to 8.5 s, against 14.7 to 22.4 s. It uses the least CPU from 10 bots up and has the lowest P99 from 10 bots up. Its worst single P99 is the lowest at every count.

A first pass ran Paper at 10 bots with the throttle on (1 of 10 bots joined). That run was dropped, and Paper 10 was rerun in the second pass with the fix. The README says which lines come from which pass. Both passes ran on the same machine the same morning.

How tested

  • python3 -m unittest tests.test_server_bench: 5 pass (the Done pattern against vanilla's and Paper's real lines, Paper's tick query lines).
  • A local smoke run of Paper and Fabric (1 and 3 bots): Lithium 0.26.2+mc26.3 loads, and Paper 26.3-205 starts and lets every bot in once the throttle is off. Then the full runs above.
  • Python only and docs; no Rust changed.

Needs nothing from Ludovic. The desktop didn't answer Wake-on-LAN twice today (also blocking Linux CI; see the other PRs).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/985 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/server-bench-paper-fabric` --- ### 📝 Commits (6) - [`86cf154`](https://github.com/horizon-rust/horizon/commit/86cf1542d12ea6e718e6782ea1fb44db0d79ee65) server_bench: Paper and Fabric + Lithium, dev-only downloads checked against their hashes - [`0001363`](https://github.com/horizon-rust/horizon/commit/0001363aa08af7293b815e1d1bd03d9e11146c92) server_bench: one tested pattern for every server's Done line - [`731b425`](https://github.com/horizon-rust/horizon/commit/731b4256db3902f51b69f5dd4e5e34717c9ea9b8) server_bench: turn Paper's connection throttle off (the bots share one address) - [`a64877f`](https://github.com/horizon-rust/horizon/commit/a64877f1a13d9d363c6be2ba5802a419f044f78f) Server benchmark: Horizon against vanilla, Paper and Fabric + Lithium, equal work (2026-10-19) - [`aec5c20`](https://github.com/horizon-rust/horizon/commit/aec5c20698d491ffe27bcbf45c807a7f8a058aab) hosting.md: rewrap the tick bullet - [`6af77df`](https://github.com/horizon-rust/horizon/commit/6af77dfbe4deba91e78699addbff435c8df4ddbb) Merge remote-tracking branch 'origin/main' into feat/server-bench-paper-fabric ### 📊 Changes **9 files changed** (+1723 additions, -27 deletions) <details> <summary>View changed files</summary> ➕ `benchmarks/server-four-way-2026-10-19/README.md` (+167 -0) ➕ `benchmarks/server-four-way-2026-10-19/load.txt` (+870 -0) ➕ `benchmarks/server-four-way-2026-10-19/report-25-50.json` (+437 -0) ➕ `benchmarks/server-four-way-2026-10-19/report-paper-10.json` (+90 -0) ➕ `benchmarks/server-four-way-2026-10-19/runs.jsonl` (+16 -0) 📝 `docs/hosting.md` (+20 -19) 📝 `docs/server.md` (+14 -1) 📝 `tests/test_server_bench.py` (+18 -1) 📝 `tools/server_bench.py` (+91 -6) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What - **`tools/server_bench.py` runs Paper and Fabric + Lithium** as well as Horizon and vanilla (`--servers horizon,vanilla,paper,fabric`). Both are dev-only downloads into `.local/server-bench/jars`, never committed or shipped: - **Paper:** the newest build for the pinned version, from PaperMC's download API, checked against its SHA-256. It runs with Paper's defaults except `connection-throttle` (off, because every bot comes from one address and the default 4 s throttle refused all but the first). Paperclip patches the pinned server jar (the owner's copy, put in its cache), so nothing is fetched from Mojang. - **Fabric + Lithium:** the pinned loader from `packs/fabric.lock.json`, and Lithium from `packs/mods.lock.json`, checked against its SHA-512 (plus Fabric API only if Lithium asks for it; it doesn't). - All Java servers get the same heap. The report records the Paper build and the loader and Lithium versions. One tested pattern now catches every server's `Done` line (Paper logs `[time INFO]:`). - **Published** `benchmarks/server-four-way-2026-10-19/`: the equal-work mixed-bot load (1/10/25/50 bots, view and simulation distance 10, explore at 0.8 blocks/s, 300 s warm-up and 300 s measured) on all four servers. docs/server.md section 9 and docs/hosting.md section 10 now quote it, and "Paper and Fabric + Lithium in the benchmark" leaves server.md's "Out (next)" list. The README quotes no server numbers, so it is unchanged. ## Results (ThinkPad i7-7500U, 4 threads; the desktop didn't wake twice) The work was equal on all four at every count (chunks/s within 4 %). | Bots | MSPT Horizon / vanilla / Paper / Fabric+Lithium | P99 | RSS GB | CPU % | |---:|---|---|---|---| | 1 | 13.7 / 17.3 / **10.3** / 12.5 | 27 / 36 / **23** / 33 | **0.72** / 3.44 / 4.24 / 3.43 | 46 / 55 / **32** / 46 | | 10 | 22.9 / 22.9 / 20.6 / **20.2** | **53** / 56 / 56 / 56 | **0.92** / 3.71 / 4.07 / 3.73 | **67** / 101 / 74 / 94 | | 25 | 30.9 / 37.4 / **28.3** / 31.4 | **72** / 83 / 90 / 93 | **1.01** / 3.94 / 4.16 / 3.88 | **99** / 191 / 124 / 174 | | 50 | 47.8 / watchdog / **46.9** / 58.3 (17.2 TPS) | **73** / – / 110 / 174 | **1.11** / – / 4.35 / 4.52 | **143** / – / 210 / 236 | **Where Horizon loses:** Paper's average tick is shorter at every count (by a third with one player, 2 % at 50). Fabric + Lithium's is shorter at 1 and 10 bots, and Horizon only ties vanilla at 10. The Horizon numbers are well above 2026-10-18's (1.8 → 13.7 ms at 1 bot) because v2026.10.19 now spawns mobs and ticks blocks around every player, as vanilla does (#950, #931). The earlier build did less work than vanilla. **Where it wins:** RSS is 3.8 to 4.8 times smaller. It starts in 8.2 to 8.5 s, against 14.7 to 22.4 s. It uses the least CPU from 10 bots up and has the lowest P99 from 10 bots up. Its worst single P99 is the lowest at every count. A first pass ran Paper at 10 bots with the throttle on (1 of 10 bots joined). That run was dropped, and Paper 10 was rerun in the second pass with the fix. The README says which lines come from which pass. Both passes ran on the same machine the same morning. ## How tested - `python3 -m unittest tests.test_server_bench`: 5 pass (the `Done` pattern against vanilla's and Paper's real lines, Paper's `tick query` lines). - A local smoke run of Paper and Fabric (1 and 3 bots): Lithium `0.26.2+mc26.3` loads, and Paper `26.3-205` starts and lets every bot in once the throttle is off. Then the full runs above. - Python only and docs; no Rust changed. Needs nothing from Ludovic. The desktop didn't answer Wake-on-LAN twice today (also blocking Linux CI; see the other PRs). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00:27 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2965
No description provided.