Repository navigation
Adds local benchmarking tools with increased flexibility - #4550
Conversation
Greptile OverviewGreptile SummaryThis PR introduces a self-contained benchmarking framework that removes the hard dependency on Key additions:
Changes:
Issues found:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Benchmark as BaseIsaacLabBenchmark
participant Backend as MetricsBackend
participant Recorders as System Recorders
participant Monitor as BenchmarkMonitor
participant Training as RL Training Loop
User->>Benchmark: Initialize(backend_type, output_path)
Benchmark->>Backend: get_instance(backend_type)
Backend-->>Benchmark: Return backend (JSON/Osmo/OmniPerf)
Benchmark->>Recorders: Initialize CPUInfo, GPUInfo, MemoryInfo, VersionInfo
Recorders-->>Benchmark: Recorders ready
alt Blocking RL Training
User->>Monitor: with BenchmarkMonitor(benchmark)
Monitor->>Monitor: Start background thread
loop Training iterations
Training->>Training: runner.learn() [blocking]
Monitor->>Recorders: update_manual_recorders() [async, every 1s]
Recorders->>Recorders: Collect CPU/GPU/Memory stats using Welford algorithm
end
Training-->>Monitor: Training complete
Monitor->>Monitor: Stop background thread
else Non-blocking workflow
User->>Benchmark: update_manual_recorders() [manual calls]
Benchmark->>Recorders: update()
end
User->>Benchmark: add_measurement(phase_name, measurement)
Benchmark->>Benchmark: Store in TestPhase
User->>Benchmark: finalize()
Benchmark->>Recorders: get_data()
Recorders-->>Benchmark: Return measurements & metadata
Benchmark->>Backend: add_metrics(test_phase)
Backend->>Backend: Accumulate phases
Benchmark->>Backend: finalize(output_path, filename)
Backend->>Backend: Write JSON/Osmo/OmniPerf file
Backend-->>User: Results written to file
|
…rting the simulation app.
… attach to the app update callback.
… attach to the app update callback.
e6330fa to
a55f295
Compare
kellyguo11
left a comment
There was a problem hiding this comment.
Looks like some mismatch in names between the recorders and test cases, seeing failures in a couple of tests:
| /workspace/isaaclab/source/isaaclab_physx/test/assets/test_articulation.py | FAILED | 0.00 | -1/0 |
| /workspace/isaaclab/source/isaaclab/test/benchmark/test_benchmark_core.py | FAILED | 0.62 | 14/19 |
| /workspace/isaaclab/source/isaaclab/test/benchmark/test_recorders.py | FAILED | 2.95 | 26/43 |
Signed-off-by: Kelly Guo <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Co-authored-by: Kelly Guo <[email protected]> Signed-off-by: Antoine RICHARD <[email protected]>
Co-authored-by: Kelly Guo <[email protected]> Signed-off-by: Antoine RICHARD <[email protected]>
Co-authored-by: Kelly Guo <[email protected]> Signed-off-by: Antoine RICHARD <[email protected]>
Co-authored-by: Kelly Guo <[email protected]> Signed-off-by: Antoine RICHARD <[email protected]>
Co-authored-by: Kelly Guo <[email protected]> Signed-off-by: Antoine RICHARD <[email protected]>
Co-authored-by: Kelly Guo <[email protected]> Signed-off-by: Antoine RICHARD <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
Signed-off-by: Kelly Guo <[email protected]>
**Description** Builds on the new benchmarking framework from #4550 by adding a human-readable summary backend and wiring it into existing benchmark scripts. **Key additions:** SummaryMetrics backend that prints a structured console summary and still writes JSON CLI summary backend support across benchmark scripts Frametime recorder fallback for Isaac Sim packaging variants (bundled frametime module) Runtime stats unit fix (FPS vs ms) and num_cpus in summary header **Updated:** Benchmark scripts to enable frametime recorders only when summary is selected **Bug fix:** Runtime stats were previously logged with unit "ms" for every metric, so FPS metrics (e.g. Collection FPS, Total FPS) were mislabelled. The fix infers the unit from the metric key name (FPS vs time) so the summary shows correct units. Location: scripts/benchmarks/utils.py, log_min_max_mean_stats. **Type of change** New feature (non-breaking change which adds functionality) Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: preeves-nv <[email protected]> Signed-off-by: Antoine RICHARD <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Antoine RICHARD <[email protected]>
Description
Introduces a self-contained benchmarking framework that removes the hard dependency on isaacsim.benchmark.services.
Key additions:
Updated:
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there