Repository navigation
Adds benchmark summary backend - #4603
kellyguo11 merged 21 commits into
Conversation
Greptile SummaryAdded Confidence Score: 5/5
Important Files Changed
Flowchartflowchart TD
A[Benchmark Script] -->|"backend_type = 'summary'"| B[BaseIsaacLabBenchmark]
B -->|Initialize| C[MetricsBackend.from_string]
C -->|Create| D[SummaryMetrics]
D -->|Delegates to| E[JSONFileMetrics]
B -->|frametime_recorders=True| F{Try Import Frametime Recorders}
F -->|Success| G[Individual Recorders]
F -->|ImportError| H[IsaacFrameTimeRecorder Fallback]
G --> I[PhysicsFrametime]
G --> J[RenderFrametime]
G --> K[AppFrametime]
G --> L[GPUFrametime]
B -->|add_measurement| D
D -->|Store| M[_phases list]
D -->|Store| E
B -->|finalize| D
D -->|_merge_phases| N[Merged TestPhase Dict]
N --> O[_print_summary]
O --> P[Console Output]
D --> E
E --> Q[JSON File Output]
R[utils.log_min_max_mean_stats] -->|"unit = 'FPS' or 'ms'"| B
style D fill:#90EE90
style E fill:#FFD700
style O fill:#87CEEB
style R fill:#FFA07A
Last reviewed commit: 742d72d |
Additional Comments (1)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
|
@greptile-apps - reply if you receive this message:
Please rescan |
|
Both issues have been fixed:
Both fixes are present in the current commit. |
@greptile-apps - can you please update the |
AntoineRichard
left a comment
There was a problem hiding this comment.
It looks good! I have few minor comments but otherwise that's great. Is there any reasons why it's still in draft mode?
| output_path=args_cli.output_path, | ||
| use_recorders=True, | ||
| frametime_recorders=backend_type == "summary", |
There was a problem hiding this comment.
| frametime_recorders=backend_type == "summary", | |
| frametime_recorders=backend_type == "summary", "omniperf"), |
Right now Omniperf CI runs with the "omniperf" backend, and our Grafana dashboards rely on those frametime metrics. Just want to make sure we don’t unintentionally drop them.
| output_path=args_cli.output_path, | ||
| use_recorders=True, | ||
| frametime_recorders=backend_type == "summary", |
There was a problem hiding this comment.
| frametime_recorders=backend_type == "summary", | |
| frametime_recorders=backend_type == "summary", "omniperf"), |
| output_path=args_cli.output_path, | ||
| use_recorders=True, | ||
| frametime_recorders=backend_type == "summary", |
There was a problem hiding this comment.
| frametime_recorders=backend_type == "summary", | |
| frametime_recorders=backend_type == "summary", "omniperf"), |
| output_path=args_cli.output_path, | ||
| use_recorders=True, | ||
| frametime_recorders=backend_type == "summary", |
There was a problem hiding this comment.
| frametime_recorders=backend_type == "summary", | |
| frametime_recorders=backend_type == "summary", "omniperf"), |
| output_path=args_cli.output_path, | ||
| use_recorders=True, | ||
| frametime_recorders=backend_type == "summary", |
There was a problem hiding this comment.
| frametime_recorders=backend_type == "summary", | |
| frametime_recorders=backend_type == "summary", "omniperf"), |
There was a problem hiding this comment.
why do we enable frametime_recorders only if backend_type is summary? seems like in the previous behavior, this was always true?
| @@ -37,6 +37,19 @@ Added | |||
| * Added shared warp math kernels in :mod:`isaaclab.utils.warp.kernels` for quaternion | |||
| operations, coordinate transforms, and velocity computations. | |||
|
|
|||
| * Added :class:`~isaaclab.test.benchmark.backends.SummaryMetrics` backend for benchmarks: | |||
There was a problem hiding this comment.
can you add this as a new entry in the changelog with corresponding version update change? the version would also need to be updated in extension.toml
| output_path=args_cli.output_path, | ||
| use_recorders=True, | ||
| frametime_recorders=backend_type == "summary", |
There was a problem hiding this comment.
why do we enable frametime_recorders only if backend_type is summary? seems like in the previous behavior, this was always true?
| from isaacsim.benchmark.services.datarecorders.render_frametime import RenderFrametimeRecorder | ||
|
|
||
| self._frametime_recorders["PhysicsFrametime"] = PhysicsFrametimeRecorder() | ||
| self._frametime_recorders["RenderFrametime"] = RenderFrametimeRecorder() |
There was a problem hiding this comment.
This is something we discussed in our meeting. On develop we currently have:
- kit-full physics, kit-full rendering
- kit-full physics, kit-less rendering
Right now you assume that everything is kit-full or kit-less, I think we should revisit this logic?
There was a problem hiding this comment.
Sure - I must have missed that - will revisit.
Print a structured summary alongside JSON output using existing measurements and metadata, including runtime aggregates, startup timings, and system info. Co-authored-by: Cursor <[email protected]>
Add the summary backend to CLI choices and enable frametime recorders when summary output is requested. Co-authored-by: Cursor <[email protected]>
Add summary to backend mapping and infer FPS vs time units when emitting min/mean/max runtime measurements. Co-authored-by: Cursor <[email protected]>
This keeps frametime collection working across Isaac Sim packaging variants. Co-authored-by: Cursor <[email protected]>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: preeves-nv <[email protected]>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Signed-off-by: preeves-nv <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
…rtion) Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Made-with: Cursor
f64985d to
02c44c4
Compare
Made-with: Cursor
Made-with: Cursor
|
@AntoineRichard could you pls approve the PR if the changes look good to you? |
Signed-off-by: Antoine RICHARD <[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
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there