[PR #670] [MERGED] Server benchmark against vanilla 26.3 on equal work #2716

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

📋 Pull Request Information

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

Base: main ← Head: feat/server-bench-equal


📝 Commits (8)

  • b347ceb Dedicated server: vanilla's chunk pacing and movement checks
  • c800330 horizon-bots: vanilla's chunk batch sizing, chunk-gated movement and chunk accounting
  • 3cd26c6 server_bench: --gamerule, more game rules for both servers
  • c5851e7 horizon-bots: --explore-speed, for an explore pass with equal work
  • 6b0b340 Benchmark: Horizon's server against vanilla 26.3 on equal work
  • 17dcb6f Merge remote-tracking branch 'origin/main' into HEAD
  • bbde190 Merge main into feat/server-move-checks
  • 900e0af Merge commit 'HEAD@{1}' into HEAD

📊 Changes

16 files changed (+2805 additions, -79 deletions)

View changed files

➕ benchmarks/server-equal-work-2026-10-17/README.md (+168 -0)
➕ benchmarks/server-equal-work-2026-10-17/explore-equal-rate.json (+267 -0)
➕ benchmarks/server-equal-work-2026-10-17/horizon.json (+415 -0)
➕ benchmarks/server-equal-work-2026-10-17/run-1-before-chunk-cache.json (+693 -0)
➕ benchmarks/server-equal-work-2026-10-17/run-2-chunk-cache.json (+413 -0)
➕ benchmarks/server-equal-work-2026-10-17/vanilla.json (+324 -0)
📝 crates/horizon-bots/src/main.rs (+120 -12)
📝 crates/horizon-client/examples/lan_flat.rs (+2 -1)
📝 crates/horizon-client/src/game/lan.rs (+10 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+1 -0)
📝 crates/horizon-client/src/game/server_travel.rs (+1 -0)
📝 crates/horizon-client/src/lan/guest.rs (+24 -2)
📝 crates/horizon-client/src/lan/hub.rs (+258 -37)
📝 crates/horizon-client/tests/lan_bot.rs (+1 -0)
📝 docs/server.md (+17 -3)
📝 tools/server_bench.py (+91 -24)

📄 Description

Stacked on #586 (move checks and chunk pacing), which the benchmark needs. Code is about 270 lines; the rest is the results (JSON) and their README.

Bots and the bench script

  • horizon-bots sizes chunk batches as vanilla's client does (ChunkBatchSizeCalculator), waits for the chunk it stands in before moving, and counts chunks: new ones, ones sent again while still held, and pull-backs.
  • --explore-speed: an explore pass at a rate both servers keep up with, so both generate the same terrain.
  • server_bench.py: --gamerule (vanilla runs with locator_bar=false, since Horizon has no locator bar yet), --explore-speed, and "moved wrongly" counted with "moved too quickly".

Results (benchmarks/server-equal-work-2026-10-17/, ThinkPad i7-7500U with servers under nice 19, bots on the Mac mini over the tailnet; Horizon = main + #586 + #623 + #649)

Bots Walk: Horizon Walk: vanilla Explore at equal rate: Horizon Explore at equal rate: vanilla
1 5.5 ms 18.3 ms 4.0 ms 18.1 ms
10 11.5 ms 16.8 ms 13.5 ms 29.2 ms
25 20.7 ms 16.0 ms 20.2 ms 37.0 ms
50 31.4 ms 20.5 ms
100 114.5 ms (8.7 TPS) stopped by its watchdog
  • Horizon's RSS is 1.9 to 2.6 times smaller in every run.
  • Both servers sent the same chunks, and neither sent a chunk twice.
  • At 100 bots vanilla's watchdog stopped it in every pass.
  • With 25 to 50 bots walking near spawn, vanilla's tick is shorter. The README profiles what remains: mostly the engine's streaming (each tick tests every loaded chunk against every player's area) and its block entity ticks. Both grow with players and are reported to perf-server. Light encoding was 8 %; a commit on #623 fixes that.
  • The "explore as fast as chunks come" pass is in the README too, labelled as unequal: Horizon generates 1.5 to 2 times vanilla's terrain there.

docs/server.md section 9 and the Scale row are updated.

Checks

  • cargo fmt --all --check
  • cargo clippy -p horizon-bots --all-targets -- -D warnings
  • cargo test -p horizon-bots
  • The full benchmark run itself, on both servers.

🤖 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/670 **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:** `feat/server-bench-equal` --- ### 📝 Commits (8) - [`b347ceb`](https://github.com/horizon-rust/horizon/commit/b347ceb19511017831a268667c2a320794502333) Dedicated server: vanilla's chunk pacing and movement checks - [`c800330`](https://github.com/horizon-rust/horizon/commit/c8003301bcab7ada444666edb09949fe9975eb99) horizon-bots: vanilla's chunk batch sizing, chunk-gated movement and chunk accounting - [`3cd26c6`](https://github.com/horizon-rust/horizon/commit/3cd26c6d0b249ca442dd3e2e7fc38cbcd70cf862) server_bench: --gamerule, more game rules for both servers - [`c5851e7`](https://github.com/horizon-rust/horizon/commit/c5851e77aa6bab2850e3f4692980e1b5ac3d564c) horizon-bots: --explore-speed, for an explore pass with equal work - [`6b0b340`](https://github.com/horizon-rust/horizon/commit/6b0b34098eaa855e3526a87192031f662479689a) Benchmark: Horizon's server against vanilla 26.3 on equal work - [`17dcb6f`](https://github.com/horizon-rust/horizon/commit/17dcb6f793b5ef7b7bc0306218287907a91bc179) Merge remote-tracking branch 'origin/main' into HEAD - [`bbde190`](https://github.com/horizon-rust/horizon/commit/bbde190f06c66764b26d4e919ac371567c7b38b5) Merge main into feat/server-move-checks - [`900e0af`](https://github.com/horizon-rust/horizon/commit/900e0af7769d11defdf9afafff6d73cea441b12b) Merge commit 'HEAD@{1}' into HEAD ### 📊 Changes **16 files changed** (+2805 additions, -79 deletions) <details> <summary>View changed files</summary> ➕ `benchmarks/server-equal-work-2026-10-17/README.md` (+168 -0) ➕ `benchmarks/server-equal-work-2026-10-17/explore-equal-rate.json` (+267 -0) ➕ `benchmarks/server-equal-work-2026-10-17/horizon.json` (+415 -0) ➕ `benchmarks/server-equal-work-2026-10-17/run-1-before-chunk-cache.json` (+693 -0) ➕ `benchmarks/server-equal-work-2026-10-17/run-2-chunk-cache.json` (+413 -0) ➕ `benchmarks/server-equal-work-2026-10-17/vanilla.json` (+324 -0) 📝 `crates/horizon-bots/src/main.rs` (+120 -12) 📝 `crates/horizon-client/examples/lan_flat.rs` (+2 -1) 📝 `crates/horizon-client/src/game/lan.rs` (+10 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+1 -0) 📝 `crates/horizon-client/src/game/server_travel.rs` (+1 -0) 📝 `crates/horizon-client/src/lan/guest.rs` (+24 -2) 📝 `crates/horizon-client/src/lan/hub.rs` (+258 -37) 📝 `crates/horizon-client/tests/lan_bot.rs` (+1 -0) 📝 `docs/server.md` (+17 -3) 📝 `tools/server_bench.py` (+91 -24) </details> ### 📄 Description Stacked on #586 (move checks and chunk pacing), which the benchmark needs. Code is about 270 lines; the rest is the results (JSON) and their README. **Bots and the bench script** - `horizon-bots` sizes chunk batches as vanilla's client does (ChunkBatchSizeCalculator), waits for the chunk it stands in before moving, and counts chunks: new ones, ones sent again while still held, and pull-backs. - `--explore-speed`: an explore pass at a rate both servers keep up with, so both generate the same terrain. - `server_bench.py`: `--gamerule` (vanilla runs with `locator_bar=false`, since Horizon has no locator bar yet), `--explore-speed`, and "moved wrongly" counted with "moved too quickly". **Results** (`benchmarks/server-equal-work-2026-10-17/`, ThinkPad i7-7500U with servers under `nice 19`, bots on the Mac mini over the tailnet; Horizon = main + #586 + #623 + #649) | Bots | Walk: Horizon | Walk: vanilla | Explore at equal rate: Horizon | Explore at equal rate: vanilla | |---:|---:|---:|---:|---:| | 1 | 5.5 ms | 18.3 ms | 4.0 ms | 18.1 ms | | 10 | 11.5 ms | 16.8 ms | 13.5 ms | 29.2 ms | | 25 | 20.7 ms | 16.0 ms | 20.2 ms | 37.0 ms | | 50 | 31.4 ms | 20.5 ms | | | | 100 | 114.5 ms (8.7 TPS) | stopped by its watchdog | | | - Horizon's RSS is 1.9 to 2.6 times smaller in every run. - Both servers sent the same chunks, and neither sent a chunk twice. - At 100 bots vanilla's watchdog stopped it in every pass. - With 25 to 50 bots walking near spawn, vanilla's tick is shorter. The README profiles what remains: mostly the engine's streaming (each tick tests every loaded chunk against every player's area) and its block entity ticks. Both grow with players and are reported to perf-server. Light encoding was 8 %; a commit on #623 fixes that. - The "explore as fast as chunks come" pass is in the README too, labelled as unequal: Horizon generates 1.5 to 2 times vanilla's terrain there. docs/server.md section 9 and the Scale row are updated. **Checks** - `cargo fmt --all --check` - `cargo clippy -p horizon-bots --all-targets -- -D warnings` - `cargo test -p horizon-bots` - The full benchmark run itself, on both servers. 🤖 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:30 +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#2716
No description provided.