[PR #683] [MERGED] Server benchmark 2026-10-17: Horizon vs vanilla 26.3 on main 7bbbf6e9, with equal work, load and a profile #2728

Closed
opened 2026-11-02 15:58:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: bench/server-2026-10-17


📝 Commits (3)

  • b660312 Publish the 2026-10-17 server benchmark against vanilla, with the machine's load
  • 3dde7d9 Merge remote-tracking branch 'origin/main' into sh4/bench-2026-10-17
  • 7da3210 Server benchmark 2026-10-17: rerun on main 7bbbf6e9 on a quiet machine, equal work, profile

📊 Changes

7 files changed (+2803 additions, -0 deletions)

View changed files

➕ benchmarks/server-2026-10-17/README.md (+174 -0)
➕ benchmarks/server-2026-10-17/earlier-002f14ce/explore-equal-rate.json (+341 -0)
➕ benchmarks/server-2026-10-17/earlier-002f14ce/load.txt (+278 -0)
➕ benchmarks/server-2026-10-17/earlier-002f14ce/walk-explore.json (+695 -0)
➕ benchmarks/server-2026-10-17/explore-equal-rate.json (+341 -0)
➕ benchmarks/server-2026-10-17/load.txt (+279 -0)
➕ benchmarks/server-2026-10-17/walk-explore.json (+695 -0)

📄 Description

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

Publishes the bot benchmark in benchmarks/server-2026-10-17/: the README, the JSON reports, both machines' load every 30 s, and a profile of Horizon at 50 bots.

This replaces the data first pushed to this PR. That run came from an overloaded Mac mini (load 55–141), on main at 123987c4, and only its 1- and 10-bot rows were fair. The new run is on main at 7bbbf6e9 (in v2026.10.17.17), with #586's movement checks, #670's equal-work method and the perf PRs #701–#707 and #713. An earlier run of the same method on 002f14ce is kept in earlier-002f14ce/ as a before/after.

Setup

  • The servers ran on the ThinkPad (i7-7500U, 4 threads), niced, with nothing else heavy: idle load 0.4.
  • The bots ran on the Mac mini over the tailnet. That machine was busy with other work (load 36–170, mean 78), the same for both servers.
  • The two servers took turns at each bot count. Each run: a fresh server, a 60 s warm-up, then 180 s measured.

Equal work (bots explore at 0.8 blocks/s; both servers send the same chunks). MSPT mean / P95 in ms, Horizon against vanilla:

Bots Horizon Vanilla Chunks/s RSS Load (server / bots)
1 3.16 / 5.78 16.82 / 27.3 2 / 2 0.76 / 3.37 GB 2.8 / 63, 1.8 / 94
10 9.83 / 19.0 24.38 / 39.6 14 / 14 0.86 / 3.57 GB 2.2 / 74, 2.5 / 64
25 16.87 / 30.9 30.29 / 43.5 34 / 33 0.89 / 3.61 GB 5.1 / 51, 5.2 / 55
50 23.57 / 47.5 42.44 / 54.8 67 / 65 0.92 / 3.67 GB 8.5 / 64, 5.1 / 59

Walk (bots walk around spawn):

Bots Horizon Vanilla Chunks/s RSS Load (server / bots)
1 4.01 / 8.19 18.22 / 29.34 10 / 10 0.78 / 3.43 GB 1.4 / 70, 1.9 / 63
10 8.79 / 17.35 18.67 / 38.26 95 / 101 0.78 / 3.50 GB 2.9 / 69, 3.2 / 59
25 15.01 / 31.12 18.78 / 28.16 234 / 252 0.80 / 3.52 GB 6.3 / 43, 6.7 / 57
50 22.72 / 60.19 34.3 / 55.55 465 / 497 0.81 / 3.58 GB 14.7 / 50, 9.5 / 56
100 63.33 / 125.0 (15.8 TPS) stopped by its watchdog 678 / – 0.87 GB / – 32.9 / 95, 15.1 / 120

The full-speed explore pass is in the README. There Horizon sends 1.6–1.8 times as many new chunks, so the work isn't equal. Vanilla's mean tick is shorter at 10 and 25 bots (16.9 against 21.3 ms, 24.9 against 25.8 ms). Its watchdog stopped it at 50 and 100.

Where vanilla wins

  • Its 95th percentile is lower with 25 and 50 walking bots.
  • Its mean tick is shorter in the full-speed explore pass at 10 and 25 bots, while doing less work.
  • Its server machine was less loaded at 50 walking bots (9.5 against 14.7).

Next biggest cost (perf, 50 walking bots, 21.7 ms):

  • 55 % of the engine's CPU is in the connection writer threads, 53 % in miniz_oxide deflate. Each chunk packet is compressed again for every player.
  • World generation takes 33 %, and the tick thread 12 %.
  • Within the tick, the locator bar (Waypoints::tick) takes a third and Hub::tick a quarter.
  • Two fixes, not done here: the zlib-rs backend (2.2–10× faster than miniz_oxide at level 6 in a quick test, about 3 % larger output), and compressing each chunk packet once for every player.

Before and after the perf PRs (README): Horizon's mean walk tick went from 16.2 to 8.8 ms at 10 bots, 24.0 to 15.0 at 25 and 35.1 to 22.7 at 50, and from 104.8 to 63.3 ms at 100. Vanilla repeated within a few percent. The earlier run's one loss, 25 walking bots, is now a win.

The server's tailnet address is replaced by <server address> in the JSON.

Checks: this PR adds docs and data only, with no code, so fmt, clippy and the tests don't apply. No harness reads benchmarks/, so parity wasn't run for it.

🤖 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/683 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `bench/server-2026-10-17` --- ### 📝 Commits (3) - [`b660312`](https://github.com/horizon-rust/horizon/commit/b6603122d7b03dc1fbf8c2af57ddcb470f53dcd6) Publish the 2026-10-17 server benchmark against vanilla, with the machine's load - [`3dde7d9`](https://github.com/horizon-rust/horizon/commit/3dde7d99556dacefb0ff7394b04b3ba4af287303) Merge remote-tracking branch 'origin/main' into sh4/bench-2026-10-17 - [`7da3210`](https://github.com/horizon-rust/horizon/commit/7da32100a87323b9d7d2a62004d4244bbb986f08) Server benchmark 2026-10-17: rerun on main 7bbbf6e9 on a quiet machine, equal work, profile ### 📊 Changes **7 files changed** (+2803 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `benchmarks/server-2026-10-17/README.md` (+174 -0) ➕ `benchmarks/server-2026-10-17/earlier-002f14ce/explore-equal-rate.json` (+341 -0) ➕ `benchmarks/server-2026-10-17/earlier-002f14ce/load.txt` (+278 -0) ➕ `benchmarks/server-2026-10-17/earlier-002f14ce/walk-explore.json` (+695 -0) ➕ `benchmarks/server-2026-10-17/explore-equal-rate.json` (+341 -0) ➕ `benchmarks/server-2026-10-17/load.txt` (+279 -0) ➕ `benchmarks/server-2026-10-17/walk-explore.json` (+695 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Publishes the bot benchmark in `benchmarks/server-2026-10-17/`: the README, the JSON reports, both machines' load every 30 s, and a profile of Horizon at 50 bots. **This replaces the data first pushed to this PR.** That run came from an overloaded Mac mini (load 55–141), on `main` at `123987c4`, and only its 1- and 10-bot rows were fair. The new run is on `main` at `7bbbf6e9` (in v2026.10.17.17), with #586's movement checks, #670's equal-work method and the perf PRs #701–#707 and #713. An earlier run of the same method on `002f14ce` is kept in `earlier-002f14ce/` as a before/after. **Setup** - The servers ran on the ThinkPad (i7-7500U, 4 threads), niced, with nothing else heavy: idle load 0.4. - The bots ran on the Mac mini over the tailnet. That machine was busy with other work (load 36–170, mean 78), the same for both servers. - The two servers took turns at each bot count. Each run: a fresh server, a 60 s warm-up, then 180 s measured. **Equal work** (bots explore at 0.8 blocks/s; both servers send the same chunks). MSPT mean / P95 in ms, Horizon against vanilla: | Bots | Horizon | Vanilla | Chunks/s | RSS | Load (server / bots) | |---:|---|---|---|---|---| | 1 | **3.16** / 5.78 | 16.82 / 27.3 | 2 / 2 | 0.76 / 3.37 GB | 2.8 / 63, 1.8 / 94 | | 10 | **9.83** / 19.0 | 24.38 / 39.6 | 14 / 14 | 0.86 / 3.57 GB | 2.2 / 74, 2.5 / 64 | | 25 | **16.87** / 30.9 | 30.29 / 43.5 | 34 / 33 | 0.89 / 3.61 GB | 5.1 / 51, 5.2 / 55 | | 50 | **23.57** / 47.5 | 42.44 / 54.8 | 67 / 65 | 0.92 / 3.67 GB | 8.5 / 64, 5.1 / 59 | **Walk** (bots walk around spawn): | Bots | Horizon | Vanilla | Chunks/s | RSS | Load (server / bots) | |---:|---|---|---|---|---| | 1 | **4.01** / 8.19 | 18.22 / 29.34 | 10 / 10 | 0.78 / 3.43 GB | 1.4 / 70, 1.9 / 63 | | 10 | **8.79** / 17.35 | 18.67 / 38.26 | 95 / 101 | 0.78 / 3.50 GB | 2.9 / 69, 3.2 / 59 | | 25 | **15.01** / 31.12 | 18.78 / **28.16** | 234 / 252 | 0.80 / 3.52 GB | 6.3 / 43, 6.7 / 57 | | 50 | **22.72** / 60.19 | 34.3 / **55.55** | 465 / 497 | 0.81 / 3.58 GB | 14.7 / 50, 9.5 / 56 | | 100 | 63.33 / 125.0 (15.8 TPS) | stopped by its watchdog | 678 / – | 0.87 GB / – | 32.9 / 95, 15.1 / 120 | The full-speed `explore` pass is in the README. There Horizon sends 1.6–1.8 times as many new chunks, so the work isn't equal. Vanilla's mean tick is shorter at 10 and 25 bots (16.9 against 21.3 ms, 24.9 against 25.8 ms). Its watchdog stopped it at 50 and 100. **Where vanilla wins** - Its 95th percentile is lower with 25 and 50 walking bots. - Its mean tick is shorter in the full-speed explore pass at 10 and 25 bots, while doing less work. - Its server machine was less loaded at 50 walking bots (9.5 against 14.7). **Next biggest cost** (perf, 50 walking bots, 21.7 ms): - 55 % of the engine's CPU is in the connection writer threads, 53 % in `miniz_oxide` deflate. Each chunk packet is compressed again for every player. - World generation takes 33 %, and the tick thread 12 %. - Within the tick, the locator bar (`Waypoints::tick`) takes a third and `Hub::tick` a quarter. - Two fixes, not done here: the `zlib-rs` backend (2.2–10× faster than `miniz_oxide` at level 6 in a quick test, about 3 % larger output), and compressing each chunk packet once for every player. **Before and after the perf PRs** (README): Horizon's mean walk tick went from 16.2 to 8.8 ms at 10 bots, 24.0 to 15.0 at 25 and 35.1 to 22.7 at 50, and from 104.8 to 63.3 ms at 100. Vanilla repeated within a few percent. The earlier run's one loss, 25 walking bots, is now a win. The server's tailnet address is replaced by `<server address>` in the JSON. **Checks:** this PR adds docs and data only, with no code, so fmt, clippy and the tests don't apply. No harness reads `benchmarks/`, so parity wasn't run for it. 🤖 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 15:58:36 +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#2728
No description provided.