[PR #264] [MERGED] perf_bench.py: repeats with 95% CIs, the shared report format, loads end when meshing is done #2447

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

📋 Pull Request Information

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

Base: main ← Head: feat/perf-bench-report-v1


📝 Commits (6)

  • e0ab3f8 Benchmark report format v1: docs/benchmark-report.md and crates/horizon-bench
  • a500e25 horizon-bench: load average, power source, RSS and CPU time probes; launcher metric names
  • 650ad39 Benchmark report uploads are dated to the day, like every telemetry item
  • 2a91612 perf_bench.py: repeats, and the benchmark report format v1
  • 7d36d09 perf_bench.py: a load ends when meshing goes quiet too
  • 49b6367 perf_bench: a load ends when every streaming stage is idle

📊 Changes

10 files changed (+1135 additions, -113 deletions)

View changed files

📝 Cargo.lock (+8 -0)
📝 Cargo.toml (+1 -1)
➕ crates/horizon-bench/Cargo.toml (+10 -0)
➕ crates/horizon-bench/src/hardware.rs (+259 -0)
➕ crates/horizon-bench/src/lib.rs (+457 -0)
📝 docs/README.md (+1 -0)
➕ docs/benchmark-report.md (+124 -0)
📝 docs/benchmark.md (+3 -3)
📝 tests/test_perf_bench.py (+68 -15)
📝 tools/perf_bench.py (+204 -94)

📄 Description

Stacked on #206 (base) and #247 (its commits show here until #247 merges). Draft until both merge.

What

  • --repeats N (3): each game runs N times per render distance from a fresh world; every figure is the mean with stdev and 95% CI (Student's t).
  • Results are benchmark reports v1 (docs/benchmark-report.md), one per game and distance: benchmarks/perf/<label>-rd<N>.json. frames()/summary() replace stats() and give the same numbers as crates/horizon-bench value for value (tested on the same inputs: lows, histogram buckets, rounding, CI). Hardware without the host name; app = horizon-client + commit, or minecraft 26.3 + Fabric Loader + the perf mods' versions from packs/mods.lock.json.
  • A load now ends when meshing has gone quiet, not when the chunk counts settle: sections wait for their neighbours' light before they're meshed, so the old criterion stopped the clock with edge sections still undrawn (seen in screenshots: floating leaves at the far edge). Quiet = fewer than 100 section meshes per second (random ticks keep remeshing a few), precise to one 50 ms poll.
  • With status.streaming (#269), a load ends when every streaming stage is idle (no generation, decoration, light or meshing work for 0.5 s; protos outside the view distance don't count), the vanilla driver's rule (no section waiting to compile). The meshing-rate rule also waited through the remeshing that follows a load (#270: 1,500 falling to 60 meshes/s for about 150 s at RD16), which inflated RD16 loads to 60–150 s. Older builds keep the meshing-rate rule. WaitLoadedTests covers both on a scripted game.
  • --table reads the new files and prints means ± CI and the load average.

Self-check

python3 -m unittest tests.test_perf_bench    4 passed

Used for the mesh-once A/B (#PR to follow) on the Mac mini.

🤖 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/264 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/perf-bench-report-v1` --- ### 📝 Commits (6) - [`e0ab3f8`](https://github.com/horizon-rust/horizon/commit/e0ab3f8fccf9790656f85ff0983b70dfe8ffee9e) Benchmark report format v1: docs/benchmark-report.md and crates/horizon-bench - [`a500e25`](https://github.com/horizon-rust/horizon/commit/a500e2570550b4a1ce5f1186856b846228417deb) horizon-bench: load average, power source, RSS and CPU time probes; launcher metric names - [`650ad39`](https://github.com/horizon-rust/horizon/commit/650ad39d854d94b496c2306304dba5999847176a) Benchmark report uploads are dated to the day, like every telemetry item - [`2a91612`](https://github.com/horizon-rust/horizon/commit/2a91612928c907a14cc80ea140f356309b650cda) perf_bench.py: repeats, and the benchmark report format v1 - [`7d36d09`](https://github.com/horizon-rust/horizon/commit/7d36d09edd31bcf5d726c5b06c75edd2d9af96c7) perf_bench.py: a load ends when meshing goes quiet too - [`49b6367`](https://github.com/horizon-rust/horizon/commit/49b6367d2e7470401b0d258f1de704c1620f0a8b) perf_bench: a load ends when every streaming stage is idle ### 📊 Changes **10 files changed** (+1135 additions, -113 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+8 -0) 📝 `Cargo.toml` (+1 -1) ➕ `crates/horizon-bench/Cargo.toml` (+10 -0) ➕ `crates/horizon-bench/src/hardware.rs` (+259 -0) ➕ `crates/horizon-bench/src/lib.rs` (+457 -0) 📝 `docs/README.md` (+1 -0) ➕ `docs/benchmark-report.md` (+124 -0) 📝 `docs/benchmark.md` (+3 -3) 📝 `tests/test_perf_bench.py` (+68 -15) 📝 `tools/perf_bench.py` (+204 -94) </details> ### 📄 Description **Stacked on #206 (base) and #247** (its commits show here until #247 merges). Draft until both merge. ## What - `--repeats N` (3): each game runs N times per render distance from a fresh world; every figure is the mean with stdev and 95% CI (Student's t). - Results are benchmark reports v1 (docs/benchmark-report.md), one per game and distance: `benchmarks/perf/<label>-rd<N>.json`. `frames()`/`summary()` replace `stats()` and give the same numbers as `crates/horizon-bench` value for value (tested on the same inputs: lows, histogram buckets, rounding, CI). Hardware without the host name; app = horizon-client + commit, or minecraft 26.3 + Fabric Loader + the perf mods' versions from packs/mods.lock.json. - **A load now ends when meshing has gone quiet**, not when the chunk counts settle: sections wait for their neighbours' light before they're meshed, so the old criterion stopped the clock with edge sections still undrawn (seen in screenshots: floating leaves at the far edge). Quiet = fewer than 100 section meshes per second (random ticks keep remeshing a few), precise to one 50 ms poll. - **With `status.streaming` (#269), a load ends when every streaming stage is idle** (no generation, decoration, light or meshing work for 0.5 s; protos outside the view distance don't count), the vanilla driver's rule (no section waiting to compile). The meshing-rate rule also waited through the remeshing that follows a load (#270: 1,500 falling to 60 meshes/s for about 150 s at RD16), which inflated RD16 loads to 60–150 s. Older builds keep the meshing-rate rule. `WaitLoadedTests` covers both on a scripted game. - `--table` reads the new files and prints means ± CI and the load average. ## Self-check ``` python3 -m unittest tests.test_perf_bench 4 passed ``` Used for the mesh-once A/B (#PR to follow) on the Mac mini. 🤖 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:56:15 +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#2447
No description provided.