Skip to content

Add PerfLab benchmark Experiments and test plan - #1565

Merged
alexmillane merged 9 commits into
alex/fix/typed_loader_external_envsfrom
cvolk/feature/perflab-benchmarks-main
Nov 4, 2026
Merged

alexmillane merged 9 commits into
alex/fix/typed_loader_external_envsfrom
cvolk/feature/perflab-benchmarks-main

Conversation

@cvolkcvolk

@cvolkcvolk cvolkcvolk commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Add the PerfLab benchmark Experiments and their test plan in a new isaaclab_arena_environments/performance/ folder, updated to run on main.

Why this change?

PerfLab runs a fixed set of Arena workloads on larger GPUs and reports timings. The Experiments and test plan for them in #1151 were written against main from August and no longer run on main:

  • The README runs the Experiment Runner through /isaac-sim/python.sh, which now fails with No module named 'isaaclab' because main's image installs Isaac Lab and Arena into a uv environment. It also passes --rendering_mode, which Isaac Lab 3.0 removed.
  • The object workloads need an object_set field that PickAndPlaceMapleTableEnvironment does not have on main.
  • The pass check reads arena_experiment_metadata.json and rollout/* timers, which main does not write.

What changes?

  • Add seven single-Run Experiments in isaaclab_arena_environments/performance/: camera-free, production-camera, Pi0.5, Cosmos, GR00T, same-object and mixed-object. The two object Experiments build their scenes from graph-spec YAMLs in the same folder, which differ only in the fruit list, so Arena code does not change.
  • perflab_benchmark_plan.md in the same folder is the PerfLab test plan. It checks each trial with main's artifacts, arena_run_timings.json and the step, step/env_step and step/policy_inference timers, and states the R580 driver requirement of main's CUDA 13.0 PyTorch.
  • test_performance_benchmark_configs.py checks that every Experiment loads through the typed loader, that the camera Experiments keep the DROID rig's camera resolution, and that the two object environments differ only in their fruit list.

Validation

  • isaaclab_arena/tests/test_performance_benchmark_configs.py: 11 passed.
  • The plan's commands for camera-free, same-object, mixed-object, production-camera and Pi0.5 pass the plan's trial checks with --device cpu, 1 environment and the plan's 300 steps. Both timing files contain the records the plan describes, and the step, step/env_step and step/policy_inference counts are 300. The Pi0.5 run used a local OpenPI server with the same pi05_droid_jointpos_polaris config the plan's server command starts.
  • The mixed-object command with 12 environments loads all ten fruit USDs; the same-object command loads only apple_01.
  • The CPU runs needed runs.<run>.environment_builder.solve_relations=false, because placement builds the cuRobo IK reachability check, which requires CUDA, and the Pi0.5 run needed shared.policy.policy_device=cpu. Object placement was therefore not exercised.
  • Not run: any --device cuda:0 run, because the test machine's driver (560) is older than R580, and the Cosmos and GR00T Experiments.

Port the PerfLab benchmark Experiments from the perflab-benchmarks
branch so they run on main:

- The same-object and mixed-object workloads use two environment
  YAMLs in the perflab folder instead of the object_set field the
  branch added to the Maple-table environment. Both use the
  stationary droid_rel_joint_pos embodiment and assign fruit to
  environments in list order.
- Drop the reduced-camera workload. Main replaced explicit camera
  dimensions with camera_resolution_mode, and its policy_default
  mode does not apply to the zero-action policy.
- Replace the provisional 10-step rollout with the 300 steps that
  every measured trial uses.

The tests check that every workload loads through the typed loader,
that the camera workloads keep the DROID rig's camera resolution,
and that the two object workloads differ only in their fruit list.

Signed-off-by: Clemens Volk <[email protected]>
Port the PerfLab test plan from the perflab-benchmarks branch to
main's runtime:

- Clone main instead of the benchmark branch.
- Run Python through ./submodules/IsaacLab/isaaclab.sh -p. Main's
  image installs Isaac Lab and Arena into a uv venv, so
  /isaac-sim/python.sh no longer finds them, and isaaclab.sh is not
  on PATH in shells attached with docker exec.
- Drop --rendering_mode, which Isaac Lab 3.0 removed. The runner
  rejects unknown flags, so the old commands fail at startup.
- Drop -g from the policy server commands. Main's server scripts
  always give the server container every GPU.
- Check trials with main's artifacts: arena_run_timings.json and the
  step, step/env_step and step/policy_inference timers, instead of
  arena_experiment_metadata.json and the rollout/* timers.
- State the R580 driver requirement of main's CUDA 13.0 PyTorch.

Signed-off-by: Clemens Volk <[email protected]>
Keep the PerfLab benchmarks in their own folder, named after what they
measure, instead of the shared experiment_configs folder:

- isaaclab_arena_environments/experiment_configs/perflab/ moves to
  isaaclab_arena_environments/performance/.
- README.md becomes perflab_benchmark_plan.md, which says what the
  file is.
- test_perflab_benchmark_configs.py becomes
  test_performance_benchmark_configs.py.

The plan's commands and the object Experiments' environment paths
point at the new folder.

Signed-off-by: Clemens Volk <[email protected]>
@cvolkcvolk
cvolkcvolk marked this pull request as ready for review October 30, 2026 14:07
@greptile-apps

greptile-apps Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issue was found.

Summary

Adds seven single-run benchmark configurations, paired object scenes, a six-workload PerfLab plan, and configuration tests.

  • Camera baselines show the cost of the production camera rig.
  • Pi0.5, Cosmos, and GR00T run as camera-based policy benchmarks.
  • Fruit workloads compare one repeated asset with ten different assets.
  • PerfLab operators get a runbook and checks for the benchmark configs.

Reviews (1) · Last reviewed commit: "Move PerfLab benchmarks to a performance..." · Reviewed by Greptile

@arena-review-bot

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR adds seven single-Run PerfLab Experiments, two graph-spec fruit scenes, an operator test plan, and a test for the configs. It changes no production code, and the Experiment YAMLs follow the pattern of the existing experiment_configs/ files. My main concerns are the duplicated fruit scenes and tests that restate YAML values rather than checking the overrides the plan actually uses.

Design, Boundaries & Scope

same_object_environment.yaml and mixed_object_environment.yaml are copies that differ only in the fruit list, and one test exists just to keep them in sync. The graph loader already supports external_yaml includes, the same way RoboLab shares its scenes. Moving the shared part into one file means the two can't drift and that test isn't needed (see the inline comment).

Findings

🟡 Warning: isaaclab_arena_environments/performance/same_object_environment.yaml:6 — Duplicated fruit scene. Share it through external_yaml.
🔵 Improvement: isaaclab_arena_environments/performance/perflab_benchmark_plan.md:3 — The plan covers six benchmarks. The GR00T Experiment is added and tested, but the plan never mentions it.
🔵 Improvement: docs/pages/references/performance.rst (not changed here) — This page already reports results for the same camera-free workload. It links to an earlier copy of the config at a pinned commit under experiment_configs/perflab/. Now that the configs land on main, should the page point to them and to this plan so readers can reproduce the numbers?

Test Coverage and CI Cost

The new tests have no markers, so they run in the in-process PhysX phase. They load configs without starting a SimulationApp, so the CI cost is small. The concern is what they protect:

  • test_perflab_experiments_are_isolated_fixed_step_runs restates YAML literals that every plan command overrides. Passing the plan's own overrides to the loader would catch the change that would actually break the commands (inline at line 50).
  • The camera and zero-action tests mostly assert a dataclass default and embodiment-name strings (inline at line 71).
  • For the two graph-spec Experiments, the loader only stores the scene path (typed_experiment_loader.py:318-335). ArenaEnvGraphSpec.validate checks structure and id references, and I didn't find a registry-name check there. A misspelled fruit name would probably only show up when the scene is built.

Limitations: I didn't finish checking the plan's operational details against the scripts and code. That covers the run_docker.sh and policy-server flags, timer names, timing-file layout, and the pass criteria. The PR's Validation section reports running five of the workloads with the plan's commands on CPU. I didn't check CI status.

Verdict

Minor fixes needed

PerfLab is an internal tool, so its runbook belongs with the other
development-team guides rather than next to the Experiment configs:

- isaaclab_arena_environments/performance/perflab_benchmark_plan.md
  becomes docs/pages/development_team_internal/perflab_benchmarks.rst.
- The Development Team Internal index lists the new page.

The content is unchanged apart from the Markdown-to-RST conversion and
naming the config folder explicitly, since the guide no longer sits in it.

Signed-off-by: alex <[email protected]>
- Lay out isaaclab_arena_environments/performance/ like RoboLab: the
  Experiments move to experiment_configs/, the two fruit environments
  become tasks/same_object.yaml and tasks/mixed_object.yaml, and the
  scene they share moves to scenes/fruit_bowl_maple_table.yaml. The
  task files drop the empty params entries.
- Replace the config tests that restated YAML values with one
  parametrized test that loads each Experiment with the overrides the
  guide's commands pass, then checks its Run name, cameras and
  embodiment.
- State in the camera Experiments and the guide that the DROID rig
  renders at its declared 1280x720, with a TODO to move to the
  policies' default resolution.
- Add the GR00T Experiment to the PerfLab guide.
- Note in the performance reference that the maintained configs on
  main may differ from the pinned, measured ones.

Signed-off-by: alex <[email protected]>

@alexmillane alexmillane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments addressed!

@alexmillane
alexmillane enabled auto-merge (squash) November 3, 2026 14:58
load_arena_experiment_from_config_file checks that every registered
environment has a config. In CI, test_external_environment runs earlier
in the same process and leaves ExternalFrankaTableEnvironment registered
without one, so every PerfLab config test failed (issue #1580).

Load the PerfLab Experiments with load_arena_experiment_from_yaml and an
explicit environment config mapping instead, as test_experiment_hydra
does. Switch back once #1379 fixes the loader.

Signed-off-by: alex <[email protected]>
The typed loader now skips registered environments without a config, so the
explicit environment config mapping is no longer needed.

This reverts commit c8d6385.

Signed-off-by: alex <[email protected]>
@alexmillane
alexmillane changed the base branch from main to alex/fix/typed_loader_external_envs November 4, 2026 15:53
@alexmillane
alexmillane merged commit 68c4f54 into alex/fix/typed_loader_external_envs Nov 4, 2026
3 of 5 checks passed
@alexmillane

Copy link
Copy Markdown
Collaborator

Auto-merge merged this into its base branch alex/fix/typed_loader_external_envs by mistake. That branch has been reset, and the change continues in #1595.

alexmillane added a commit that referenced this pull request Nov 6, 2026
Add the PerfLab benchmark Experiments in
`isaaclab_arena_environments/performance/`, and their test plan in the
internal developer docs.

Replaces #1565 (merged into its base by mistake; review history is
there). Stacked on #1594: merge that first.

## Why this change?

The PerfLab Experiments and test plan from #1151 no longer run on main:
the Python launcher, the Experiment fields and the timing files they use
have all changed.

## What changes?

- Seven single-Run Experiments in `performance/experiment_configs/`:
camera-free, production-camera, Pi0.5, Cosmos, GR00T, same-object and
mixed-object. The object workloads share one scene in
`performance/scenes/` and differ only in their fruit list.
- The test plan in
`docs/pages/development_team_internal/perflab_benchmarks.rst`.
- `test_performance_benchmark_configs.py` loads each Experiment with the
plan's overrides and checks the result.

## Validation

- `test_performance_benchmark_configs.py`: 9 passed.
- Camera-free, same-object, mixed-object, production-camera and Pi0.5
pass the plan's trial checks on CPU with 1 environment. Not run: on GPU,
Cosmos and GR00T.

---------

Signed-off-by: Clemens Volk <[email protected]>
Signed-off-by: alex <[email protected]>
Co-authored-by: Clemens Volk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants