diff --git a/benchmarks/idle-queue-2026-10-03/macos-26.txt b/benchmarks/idle-queue-2026-10-03/macos-26.txt new file mode 100644 index 000000000..e57070078 --- /dev/null +++ b/benchmarks/idle-queue-2026-10-03/macos-26.txt @@ -0,0 +1,42 @@ +Java openjdk 25.0.4.1 2026-08-18 LTS +Platform Darwin 25.6.0 arm64; logical CPUs 3 +mode=upstream trial=0 incoming_after_idle_ms=26.655 publication_to_pop_ms=27.930 +mode=wakeable trial=0 incoming_after_idle_ms=23.086 publication_to_pop_ms=0.098 +mode=upstream trial=1 incoming_after_idle_ms=25.029 publication_to_pop_ms=94.707 +mode=wakeable trial=1 incoming_after_idle_ms=19.340 publication_to_pop_ms=16.096 +mode=upstream trial=2 incoming_after_idle_ms=16.530 publication_to_pop_ms=98.696 +mode=wakeable trial=2 incoming_after_idle_ms=12.085 publication_to_pop_ms=0.080 +mode=upstream trial=3 incoming_after_idle_ms=20.350 publication_to_pop_ms=50.086 +mode=wakeable trial=3 incoming_after_idle_ms=15.681 publication_to_pop_ms=0.051 +mode=upstream trial=4 incoming_after_idle_ms=26.474 publication_to_pop_ms=90.380 +mode=wakeable trial=4 incoming_after_idle_ms=21.794 publication_to_pop_ms=0.054 +mode=upstream trial=5 incoming_after_idle_ms=20.069 publication_to_pop_ms=91.508 +mode=wakeable trial=5 incoming_after_idle_ms=14.527 publication_to_pop_ms=0.069 +mode=upstream trial=6 incoming_after_idle_ms=25.051 publication_to_pop_ms=58.889 +mode=wakeable trial=6 incoming_after_idle_ms=20.193 publication_to_pop_ms=0.081 +mode=upstream trial=7 incoming_after_idle_ms=12.084 publication_to_pop_ms=41.323 +mode=wakeable trial=7 incoming_after_idle_ms=5.867 publication_to_pop_ms=0.057 +mode=upstream trial=8 incoming_after_idle_ms=19.023 publication_to_pop_ms=99.615 +mode=wakeable trial=8 incoming_after_idle_ms=18.833 publication_to_pop_ms=0.063 +mode=upstream trial=9 incoming_after_idle_ms=13.648 publication_to_pop_ms=103.446 +mode=wakeable trial=9 incoming_after_idle_ms=28.375 publication_to_pop_ms=0.056 +mode=upstream trial=10 incoming_after_idle_ms=17.449 publication_to_pop_ms=98.829 +mode=wakeable trial=10 incoming_after_idle_ms=24.812 publication_to_pop_ms=0.062 +mode=upstream trial=11 incoming_after_idle_ms=26.751 publication_to_pop_ms=88.715 +mode=wakeable trial=11 incoming_after_idle_ms=28.154 publication_to_pop_ms=0.067 +mode=upstream trial=12 incoming_after_idle_ms=20.596 publication_to_pop_ms=73.247 +mode=wakeable trial=12 incoming_after_idle_ms=16.397 publication_to_pop_ms=0.080 +mode=upstream trial=13 incoming_after_idle_ms=19.685 publication_to_pop_ms=53.674 +mode=wakeable trial=13 incoming_after_idle_ms=21.934 publication_to_pop_ms=0.050 +mode=upstream trial=14 incoming_after_idle_ms=16.937 publication_to_pop_ms=37.755 +mode=wakeable trial=14 incoming_after_idle_ms=18.296 publication_to_pop_ms=0.074 +mode=upstream trial=15 incoming_after_idle_ms=17.572 publication_to_pop_ms=68.115 +mode=wakeable trial=15 incoming_after_idle_ms=13.516 publication_to_pop_ms=0.072 +mode=upstream trial=16 incoming_after_idle_ms=24.639 publication_to_pop_ms=100.433 +mode=wakeable trial=16 incoming_after_idle_ms=22.918 publication_to_pop_ms=0.103 +mode=upstream trial=17 incoming_after_idle_ms=30.593 publication_to_pop_ms=79.830 +mode=wakeable trial=17 incoming_after_idle_ms=25.080 publication_to_pop_ms=0.053 +mode=upstream trial=18 incoming_after_idle_ms=15.889 publication_to_pop_ms=108.892 +mode=wakeable trial=18 incoming_after_idle_ms=27.297 publication_to_pop_ms=0.034 +mode=upstream trial=19 incoming_after_idle_ms=10.808 publication_to_pop_ms=59.234 +mode=wakeable trial=19 incoming_after_idle_ms=16.349 publication_to_pop_ms=0.083 diff --git a/benchmarks/idle-queue-2026-10-03/ubuntu-latest.txt b/benchmarks/idle-queue-2026-10-03/ubuntu-latest.txt new file mode 100644 index 000000000..b32fbb42e --- /dev/null +++ b/benchmarks/idle-queue-2026-10-03/ubuntu-latest.txt @@ -0,0 +1,42 @@ +Java openjdk 25.0.4.1 2026-08-18 LTS +Platform Linux 6.17.0-1022-azure x86_64; logical CPUs 4 +mode=upstream trial=0 incoming_after_idle_ms=5.089 publication_to_pop_ms=45.143 +mode=wakeable trial=0 incoming_after_idle_ms=5.100 publication_to_pop_ms=0.073 +mode=upstream trial=1 incoming_after_idle_ms=5.125 publication_to_pop_ms=45.051 +mode=wakeable trial=1 incoming_after_idle_ms=5.097 publication_to_pop_ms=0.055 +mode=upstream trial=2 incoming_after_idle_ms=5.098 publication_to_pop_ms=45.135 +mode=wakeable trial=2 incoming_after_idle_ms=5.088 publication_to_pop_ms=0.042 +mode=upstream trial=3 incoming_after_idle_ms=5.091 publication_to_pop_ms=45.084 +mode=wakeable trial=3 incoming_after_idle_ms=5.149 publication_to_pop_ms=0.049 +mode=upstream trial=4 incoming_after_idle_ms=5.103 publication_to_pop_ms=45.060 +mode=wakeable trial=4 incoming_after_idle_ms=5.141 publication_to_pop_ms=0.064 +mode=upstream trial=5 incoming_after_idle_ms=5.127 publication_to_pop_ms=45.047 +mode=wakeable trial=5 incoming_after_idle_ms=5.137 publication_to_pop_ms=0.053 +mode=upstream trial=6 incoming_after_idle_ms=5.129 publication_to_pop_ms=45.177 +mode=wakeable trial=6 incoming_after_idle_ms=5.134 publication_to_pop_ms=0.068 +mode=upstream trial=7 incoming_after_idle_ms=5.107 publication_to_pop_ms=45.059 +mode=wakeable trial=7 incoming_after_idle_ms=5.137 publication_to_pop_ms=0.061 +mode=upstream trial=8 incoming_after_idle_ms=5.168 publication_to_pop_ms=45.005 +mode=wakeable trial=8 incoming_after_idle_ms=5.134 publication_to_pop_ms=0.060 +mode=upstream trial=9 incoming_after_idle_ms=5.105 publication_to_pop_ms=45.077 +mode=wakeable trial=9 incoming_after_idle_ms=5.148 publication_to_pop_ms=0.070 +mode=upstream trial=10 incoming_after_idle_ms=5.092 publication_to_pop_ms=45.197 +mode=wakeable trial=10 incoming_after_idle_ms=5.136 publication_to_pop_ms=0.055 +mode=upstream trial=11 incoming_after_idle_ms=5.113 publication_to_pop_ms=45.045 +mode=wakeable trial=11 incoming_after_idle_ms=5.122 publication_to_pop_ms=0.044 +mode=upstream trial=12 incoming_after_idle_ms=5.095 publication_to_pop_ms=45.070 +mode=wakeable trial=12 incoming_after_idle_ms=5.147 publication_to_pop_ms=0.052 +mode=upstream trial=13 incoming_after_idle_ms=5.118 publication_to_pop_ms=45.048 +mode=wakeable trial=13 incoming_after_idle_ms=5.168 publication_to_pop_ms=0.047 +mode=upstream trial=14 incoming_after_idle_ms=5.133 publication_to_pop_ms=45.129 +mode=wakeable trial=14 incoming_after_idle_ms=5.155 publication_to_pop_ms=0.047 +mode=upstream trial=15 incoming_after_idle_ms=5.098 publication_to_pop_ms=45.031 +mode=wakeable trial=15 incoming_after_idle_ms=5.167 publication_to_pop_ms=0.044 +mode=upstream trial=16 incoming_after_idle_ms=5.129 publication_to_pop_ms=45.051 +mode=wakeable trial=16 incoming_after_idle_ms=5.135 publication_to_pop_ms=0.073 +mode=upstream trial=17 incoming_after_idle_ms=5.148 publication_to_pop_ms=45.034 +mode=wakeable trial=17 incoming_after_idle_ms=5.148 publication_to_pop_ms=0.044 +mode=upstream trial=18 incoming_after_idle_ms=5.181 publication_to_pop_ms=45.103 +mode=wakeable trial=18 incoming_after_idle_ms=5.127 publication_to_pop_ms=0.046 +mode=upstream trial=19 incoming_after_idle_ms=5.094 publication_to_pop_ms=45.075 +mode=wakeable trial=19 incoming_after_idle_ms=5.148 publication_to_pop_ms=0.051 diff --git a/benchmarks/idle-queue-2026-10-03/windows-latest.txt b/benchmarks/idle-queue-2026-10-03/windows-latest.txt new file mode 100644 index 000000000..92bbe745f --- /dev/null +++ b/benchmarks/idle-queue-2026-10-03/windows-latest.txt @@ -0,0 +1,42 @@ +Java openjdk 25.0.4.1 2026-08-18 LTS +Platform Windows 2025Server AMD64; logical CPUs 4 +mode=upstream trial=0 incoming_after_idle_ms=5.487 publication_to_pop_ms=45.519 +mode=wakeable trial=0 incoming_after_idle_ms=5.377 publication_to_pop_ms=0.127 +mode=upstream trial=1 incoming_after_idle_ms=6.059 publication_to_pop_ms=44.593 +mode=wakeable trial=1 incoming_after_idle_ms=5.539 publication_to_pop_ms=0.094 +mode=upstream trial=2 incoming_after_idle_ms=5.096 publication_to_pop_ms=45.005 +mode=wakeable trial=2 incoming_after_idle_ms=5.624 publication_to_pop_ms=0.079 +mode=upstream trial=3 incoming_after_idle_ms=5.649 publication_to_pop_ms=44.691 +mode=wakeable trial=3 incoming_after_idle_ms=4.731 publication_to_pop_ms=0.077 +mode=upstream trial=4 incoming_after_idle_ms=5.312 publication_to_pop_ms=45.488 +mode=wakeable trial=4 incoming_after_idle_ms=5.156 publication_to_pop_ms=0.108 +mode=upstream trial=5 incoming_after_idle_ms=5.190 publication_to_pop_ms=45.580 +mode=wakeable trial=5 incoming_after_idle_ms=5.457 publication_to_pop_ms=0.077 +mode=upstream trial=6 incoming_after_idle_ms=5.141 publication_to_pop_ms=45.619 +mode=wakeable trial=6 incoming_after_idle_ms=5.592 publication_to_pop_ms=0.074 +mode=upstream trial=7 incoming_after_idle_ms=5.823 publication_to_pop_ms=44.487 +mode=wakeable trial=7 incoming_after_idle_ms=5.355 publication_to_pop_ms=0.066 +mode=upstream trial=8 incoming_after_idle_ms=5.675 publication_to_pop_ms=45.050 +mode=wakeable trial=8 incoming_after_idle_ms=5.252 publication_to_pop_ms=0.075 +mode=upstream trial=9 incoming_after_idle_ms=5.921 publication_to_pop_ms=44.505 +mode=wakeable trial=9 incoming_after_idle_ms=6.002 publication_to_pop_ms=0.072 +mode=upstream trial=10 incoming_after_idle_ms=5.797 publication_to_pop_ms=44.517 +mode=wakeable trial=10 incoming_after_idle_ms=5.103 publication_to_pop_ms=0.070 +mode=upstream trial=11 incoming_after_idle_ms=5.115 publication_to_pop_ms=45.066 +mode=wakeable trial=11 incoming_after_idle_ms=5.638 publication_to_pop_ms=0.071 +mode=upstream trial=12 incoming_after_idle_ms=5.239 publication_to_pop_ms=45.538 +mode=wakeable trial=12 incoming_after_idle_ms=5.666 publication_to_pop_ms=0.083 +mode=upstream trial=13 incoming_after_idle_ms=5.136 publication_to_pop_ms=45.251 +mode=wakeable trial=13 incoming_after_idle_ms=4.163 publication_to_pop_ms=0.073 +mode=upstream trial=14 incoming_after_idle_ms=5.256 publication_to_pop_ms=46.048 +mode=wakeable trial=14 incoming_after_idle_ms=5.545 publication_to_pop_ms=0.074 +mode=upstream trial=15 incoming_after_idle_ms=4.239 publication_to_pop_ms=47.028 +mode=wakeable trial=15 incoming_after_idle_ms=5.292 publication_to_pop_ms=0.053 +mode=upstream trial=16 incoming_after_idle_ms=5.959 publication_to_pop_ms=45.046 +mode=wakeable trial=16 incoming_after_idle_ms=5.230 publication_to_pop_ms=0.182 +mode=upstream trial=17 incoming_after_idle_ms=5.153 publication_to_pop_ms=45.005 +mode=wakeable trial=17 incoming_after_idle_ms=5.220 publication_to_pop_ms=0.066 +mode=upstream trial=18 incoming_after_idle_ms=5.358 publication_to_pop_ms=46.008 +mode=wakeable trial=18 incoming_after_idle_ms=5.156 publication_to_pop_ms=0.062 +mode=upstream trial=19 incoming_after_idle_ms=4.370 publication_to_pop_ms=47.015 +mode=wakeable trial=19 incoming_after_idle_ms=5.162 publication_to_pop_ms=0.073 diff --git a/docs/debounce-queue.md b/docs/debounce-queue.md index dee0e1d26..9c0a06e38 100644 --- a/docs/debounce-queue.md +++ b/docs/debounce-queue.md @@ -46,7 +46,20 @@ about 5 ms into an idle interval. Separate upstream-sleep and wakeable-park work check the same update identity and empty queue after removal. Four warm-up pairs precede 20 alternating measured pairs. Output reports actual arrival time and publication-start-to-pop latency. Local Linux medians were 45.181 ms upstream and -0.199 ms wakeable; hosted platform results are recorded after CI finishes. +0.199 ms wakeable. + +Hosted medians and nearest-rank p95 over 20 measured trials: + +| Platform | Upstream median | Wakeable median | Wakeable p95 | Wakeable maximum | +| --- | ---: | ---: | ---: | ---: | +| macOS ARM64 | 84.273 ms | 0.068 ms | 0.103 ms | 16.096 ms | +| Linux x64 | 45.065 ms | 0.053 ms | 0.073 ms | 0.073 ms | +| Windows x64 | 45.159 ms | 0.074 ms | 0.127 ms | 0.182 ms | + +The upstream Mac maximum was 108.892 ms; its requested 50 ms sleep overshot. +The wakeable Mac maximum also shows scheduler variability. The hosted ARM Mac +has three logical CPUs and is not the user's M2 Pro. [Raw trials](../benchmarks/idle-queue-2026-10-03) +are from [CI run 37155695460](https://github.com/ludovic111/minecraft-optimization-lab/actions/runs/37155695460). This isolates idle wakeup, including enqueue/pop overhead. It does not simulate the existing 250 ms debounce, preprocessing, chunk generation, meshing, network diff --git a/docs/playable-validation.md b/docs/playable-validation.md index 78cffdfd7..9f0539ef0 100644 --- a/docs/playable-validation.md +++ b/docs/playable-validation.md @@ -22,6 +22,20 @@ Version 0.2.0 targets Minecraft 26.3 / Fabric 0.19.5 / Java 25. This is an initi ## Interpretation limits +The exact 0.9.0 JAR (SHA-256 +`2c5a731d4c93df427cc6054f120a52bf9456b3343b94ad9b79de1584b14d783f`) +ran the combined queue/adaptive/pacing profile with a 3 GiB heap and compact +headers enabled. Thread inspection reached the new wakeable idle park in all +three dimension queues. The 120-second capture produced 806 frame intervals and +2,411 server ticks, with matching CSV counts/means and 120 RSS samples each. +The frame report captures the idle hook as true and actual render/simulation +distances 12/12. The offline viewer reads the new flag, JVM settings and raw CSV; +general viewer checks also pass. World/database/worker shutdown completed cleanly. +Concurrency tests and the actual publisher-queue wake-latency probe pass on +Linux, Windows and hosted Apple Silicon macOS; [raw results and limits](debounce-queue.md) +keep idle wakeup separate from terrain completion and FPS. A 3 GiB heap passing +this short world test is not a recommendation for heavy or long-running worlds. + The exact 0.8.0 JAR (SHA-256 `b674be112cd148406b6b79c14f54b91a4da1ac0e03fe744aaee857c5a51eae8a`) loaded the complete adaptive-queue stack with compact headers enabled. A fresh