bench: render one console results table after benchmark completes - #33
Merged
Conversation
wlgys8
force-pushed
the
bench-deferred-report-table
branch
from
September 11, 2026 18:27
e69c9d6 to
62d921d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bench/report.py:render_table()渲染带边框的 ASCII 表格,数字列自动右对齐、文本列左对齐。bench/bench_env.py:收集全部测量结果,跑完后一次性输出结果表格;Perf breakdown 树也移到最后输出;--num-envs默认值改为 2048;--json/--breakdown语义不变。bench/bench_physics.py:run_single/run_node/run_shard不再边跑边打印 key-value 块,改为返回 rows + notes;main在整场 sweep 结束后输出一张汇总表和 footer(sim 配置、CPU/NUMA/binding 上下文、聚合信息)。bench_wbt_kernel.py本来就只在结束时输出一次 JSON,未改动。效果:测量期间引擎日志照常输出,bench 报告作为一块连续的表格在最后输出,不再被日志污染。
Test plan
python bench/bench_env.py --env cartpole --num-envs 4 32 --steps 50 --warmup 2python bench/bench_env.py --env cartpole --compare-env cartpole --num-envs 4 --steps 20 --warmup 1 --breakdownpython bench/bench_physics.py --num-envs 64 128 --iters 5 --warmup 1 --numa node