[PR #5386] [MERGED] Server bench: Horizon against Pumpkin at 0 to 100 bots #6253

Closed
opened 2026-11-03 06:16:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: tools/server-bench-pumpkin


📝 Commits (5)

  • aa7f278 Server bench: Pumpkin runs, rounds and the join time
  • a7bed87 Server bench: Pumpkin's first start listens on 127.0.0.1 only, without telemetry
  • e7c2e89 Server bench: rewrap the Pumpkin paragraph
  • 0b8417a Docs: Horizon's server against Pumpkin at 0 to 100 bots
  • 4102dc1 Server bench tests: Pumpkin's configuration, its ready line, rounds

📊 Changes

5 files changed (+1792 additions, -23 deletions)

View changed files

➕ benchmarks/server-vs-pumpkin-2026-10-31.json (+1497 -0)
📝 docs/README.md (+1 -0)
➕ docs/performance/server-vs-pumpkin.md (+90 -0)
📝 tests/test_server_bench.py (+68 -4)
📝 tools/server_bench.py (+136 -19)

📄 Description

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

Roadmap server-tick. A head-to-head between Horizon's server and Pumpkin (the Rust Minecraft server), and the tool to rerun it.

What

  • tools/server_bench.py --servers horizon,pumpkin --pumpkin <binary>. Pumpkin is GPL-3.0, so it runs as a black box: a binary you build yourself. None of its source is read, copied or shipped. Its first start writes its default configuration in a scratch folder. That start is seeded to listen on 127.0.0.1 only, with no telemetry: Pumpkin's stock defaults listen on 0.0.0.0 for Java and Bedrock and send telemetry. Every run then gets that file with the benchmark's settings (seed, view/sim 10, creative, offline, no encryption, 127.0.0.1), and with Bedrock, LAN, query, plugins and telemetry off.
  • --repeat N: rounds, with the servers alternated. --bots 0 measures the idle server. Each run now also records the bots' join time.
  • docs/performance/server-vs-pumpkin.md: the result, how to read it, where Horizon loses (ranked), and the commands to run it again. The raw report is benchmarks/server-vs-pumpkin-2026-10-31.json (most of the line count).
  • Tests: Pumpkin's ready line, its configuration rewrite (on a made-up file in its shape), and rounds in the work table.

Result

playhorizon (EPYC 7662). The server and the bots ran on CPUs 0-3, with no other benchmark there; the CI runner is pinned to CPUs 4-7. Release builds: Horizon main d91cab68d, Pumpkin 55cb804cc (0.2.1+26.3-26.60, protocol 777, the same as the bots). mixed bots, 3 rounds, medians:

Bots MSPT avg H / P P99 H / P RSS MB H / P new chunks/s H / P join P50 ms H / P join max ms H / P
0 0.0 / 0.2 0.1 / 0.4 320 / 69 – – –
20 36.0 / 20.0 54.9 / 59.9 1179 / 1139 112 / 69 68 / 26 85 / 1192
60 62.0 / 63.7 98.4 / 113.0 1765 / 1771 87 / 69 65 / 33 109 / 1347
100 82.0 / 156.6 120.2 / 299.0 2099 / 1848 77 / 81 71 / 37 139 / 1657

Start to first tick: Horizon 2.2 s, Pumpkin 0.1 s.

  • Horizon wins under load: at 100 bots its average tick is half Pumpkin's, and its P99 is lower at 60 and 100. Its worst join is under 140 ms, against up to 1.7 s on Pumpkin.
  • Horizon loses at light load: at 20 bots its average tick is 36 against 20 ms, though it generates 63 % more new chunks a second and runs vanilla's whole mob simulation. It also loses on idle memory, start-up and median join. The doc ranks these. The mob fixes #5191 and #5237 merged after this run.

Checks

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at d91cab68d, 11 min 31 s)

Check Result
Scope ⚠️ 5 files, +1792 −23; 1652 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 498 passed (11 min 28 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label skip-release

The scope warning counts the JSON report: the code is the tool (+155 −23) and its tests (+72). Python tests: 498 passed. Runs on playhorizon: a smoke run (2 bots), the full matrix (24 runs, none failed) and ss showing Pumpkin listening on 127.0.0.1 only.

🤖 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/5386 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `tools/server-bench-pumpkin` --- ### 📝 Commits (5) - [`aa7f278`](https://github.com/horizon-rust/horizon/commit/aa7f278b7f600e3938c05521802102c8664ad798) Server bench: Pumpkin runs, rounds and the join time - [`a7bed87`](https://github.com/horizon-rust/horizon/commit/a7bed87b6d601421a583cf20f6397889ec1baf03) Server bench: Pumpkin's first start listens on 127.0.0.1 only, without telemetry - [`e7c2e89`](https://github.com/horizon-rust/horizon/commit/e7c2e8962e399ff6e642b1db0609c107a9deae45) Server bench: rewrap the Pumpkin paragraph - [`0b8417a`](https://github.com/horizon-rust/horizon/commit/0b8417aad0a5b24c6942b3b19fb727ca987a08dc) Docs: Horizon's server against Pumpkin at 0 to 100 bots - [`4102dc1`](https://github.com/horizon-rust/horizon/commit/4102dc1056e8ba2a0263e3d4f14ac6d8ad9fa94c) Server bench tests: Pumpkin's configuration, its ready line, rounds ### 📊 Changes **5 files changed** (+1792 additions, -23 deletions) <details> <summary>View changed files</summary> ➕ `benchmarks/server-vs-pumpkin-2026-10-31.json` (+1497 -0) 📝 `docs/README.md` (+1 -0) ➕ `docs/performance/server-vs-pumpkin.md` (+90 -0) 📝 `tests/test_server_bench.py` (+68 -4) 📝 `tools/server_bench.py` (+136 -19) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Roadmap `server-tick`. A head-to-head between Horizon's server and Pumpkin (the Rust Minecraft server), and the tool to rerun it. ## What - `tools/server_bench.py --servers horizon,pumpkin --pumpkin <binary>`. Pumpkin is GPL-3.0, so it runs as a black box: a binary you build yourself. None of its source is read, copied or shipped. Its first start writes its default configuration in a scratch folder. That start is seeded to listen on 127.0.0.1 only, with no telemetry: Pumpkin's stock defaults listen on 0.0.0.0 for Java and Bedrock and send telemetry. Every run then gets that file with the benchmark's settings (seed, view/sim 10, creative, offline, no encryption, 127.0.0.1), and with Bedrock, LAN, query, plugins and telemetry off. - `--repeat N`: rounds, with the servers alternated. `--bots 0` measures the idle server. Each run now also records the bots' join time. - `docs/performance/server-vs-pumpkin.md`: the result, how to read it, where Horizon loses (ranked), and the commands to run it again. The raw report is `benchmarks/server-vs-pumpkin-2026-10-31.json` (most of the line count). - Tests: Pumpkin's ready line, its configuration rewrite (on a made-up file in its shape), and rounds in the work table. ## Result playhorizon (EPYC 7662). The server and the bots ran on CPUs 0-3, with no other benchmark there; the CI runner is pinned to CPUs 4-7. Release builds: Horizon main d91cab68d, Pumpkin 55cb804cc (0.2.1+26.3-26.60, protocol 777, the same as the bots). `mixed` bots, 3 rounds, medians: | Bots | MSPT avg H / P | P99 H / P | RSS MB H / P | new chunks/s H / P | join P50 ms H / P | join max ms H / P | |---:|---|---|---|---|---|---| | 0 | 0.0 / 0.2 | 0.1 / 0.4 | **320 / 69** | – | – | – | | 20 | **36.0 / 20.0** | 54.9 / 59.9 | 1179 / 1139 | 112 / 69 | 68 / 26 | 85 / 1192 | | 60 | 62.0 / 63.7 | 98.4 / 113.0 | 1765 / 1771 | 87 / 69 | 65 / 33 | 109 / 1347 | | 100 | **82.0 / 156.6** | 120.2 / 299.0 | 2099 / 1848 | 77 / 81 | 71 / 37 | 139 / 1657 | Start to first tick: Horizon 2.2 s, Pumpkin 0.1 s. - **Horizon wins under load**: at 100 bots its average tick is half Pumpkin's, and its P99 is lower at 60 and 100. Its worst join is under 140 ms, against up to 1.7 s on Pumpkin. - **Horizon loses at light load**: at 20 bots its average tick is 36 against 20 ms, though it generates 63 % more new chunks a second and runs vanilla's whole mob simulation. It also loses on idle memory, start-up and median join. The doc ranks these. The mob fixes #5191 and #5237 merged after this run. ## Checks **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at d91cab68d, 11 min 31 s) | Check | Result | | --- | --- | | Scope | ⚠️ 5 files, +1792 −23; 1652 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 498 passed (11 min 28 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | `skip-release` | The scope warning counts the JSON report: the code is the tool (+155 −23) and its tests (+72). Python tests: 498 passed. Runs on playhorizon: a smoke run (2 bots), the full matrix (24 runs, none failed) and `ss` showing Pumpkin listening on 127.0.0.1 only. 🤖 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-03 06:16:24 +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#6253
No description provided.