Files
MoonBridge/testing/benchmarks/results/2026-09-25-current-session-benchmark.md
layue13andClaude Opus 5.5 789648c82f refactor: 仓库根目录按用途分组
- proxy/:core、plugin-api、luckperms 及其上游子模块 vendor/luckperms
- messaging/、backend/ 保持在根目录(messaging 是代理与后端共用的 API)
- build-logic/(原 proxy-build-logic)
- testing/:smoke/ 与 benchmarks/,不进入发行物

Gradle 项目名不变(settings.gradle.kts 映射目录),任务路径与 Maven 坐标照旧。
脚本的仓库根定位、文档与记录中的链接同步更新。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 14:34:01 +08:00

2.7 KiB
Raw Permalink Blame History

Current proxy session benchmark

Run date: 2026-09-25 (Asia/Shanghai). Tested revision: e617fd478458706f7c7d12029fe4df9a1f61966b.

Environment: Windows 11 Enterprise, AMD Ryzen 7 7800X3D, Zulu OpenJDK 25.0.4.1, PowerShell 7.6.5. Each command ran :proxy-core:installDist, compiled the benchmark, and exited successfully. No source code was changed between runs.

The same JVM, fake TCP backend, client code, 4,096-byte PLAY body, four clients, and in-flight window were used for each direct/proxy pair. Phases alternated order by repeat. Setup, login, and warmup were excluded from timing. The client checked packet ID, sequence, body length, and deterministic payload on every echo.

Window Measured roundtrips per phase Warmup per phase Repeats Direct roundtrips/s range Proxy roundtrips/s range Result
1 40,000 4,000 5 57,300.8–64,596.5 33,286.2–40,496.1 All echoes correct; zero errors
16 40,000 4,000 5 96,568.9–130,166.6 86,499.8–101,342.1 All echoes correct; zero errors
16 160,000 16,000 5 96,414.2–124,807.1 100,530.3–102,760.3 All echoes correct; zero errors

The direct baseline dropped substantially during the window-16 runs while proxy throughput was steadier. In the longest run, direct fell from 124,807.1 to roughly 96,500 roundtrips/s after the first repeat. A paired proxy/direct ratio then changed from 0.82 to about 1.04–1.06 without a code change. These measurements establish that the full login/session/relay path worked under this synthetic traffic, but they do not establish a stable throughput advantage or overhead estimate. Window 1 stayed slower through the proxy in all five repeats. The measured p95 roundtrip latency was 0.073–0.079 ms direct and 0.125–0.140 ms through the proxy.

Commands and raw outputs:

This is a loopback echo test of the proxy itself. It is not backend load observation and does not include a real 1.7.10 Forge client, modpack, backend, cross-host network, or gameplay. Those conditions still need separate validation when the pack is available.