Skip to content

Add e2e tests for perf memory measurement#898

Merged
DingmaomaoBJTU merged 1 commit into
mainfrom
dingmaomaobjtu/perf-memory-e2e-tests
Jun 16, 2026
Merged

Add e2e tests for perf memory measurement#898
DingmaomaoBJTU merged 1 commit into
mainfrom
dingmaomaobjtu/perf-memory-e2e-tests

Conversation

@DingmaomaoBJTU

Copy link
Copy Markdown
Collaborator

Summary

Adds end-to-end tests for the --memory/--no-memory\ perf CLI flag introduced in #861.

Changes

  • Added \memory\ parameter to _build_perf_args()\ test helper
  • \ est_benchmark_cpu_memory: Verifies --memory\ produces JSON with \memory\ section containing RSS fields, and console output shows Memory/RAM sections
  • \ est_benchmark_cpu_no_memory: Verifies --no-memory\ excludes memory from both JSON and console output
  • \ est_benchmark_npu_memory: Verifies VRAM local/shared fields are populated when running on NPU device

Stacked on

@DingmaomaoBJTU DingmaomaoBJTU requested a review from a team as a code owner June 16, 2026 07:27
- Add memory param to _build_perf_args helper
- test_benchmark_cpu_memory: verify JSON has memory section with RAM fields
- test_benchmark_cpu_no_memory: verify --no-memory excludes memory from output
- test_benchmark_npu_memory: verify VRAM local/shared fields on NPU device
@DingmaomaoBJTU DingmaomaoBJTU force-pushed the dingmaomaobjtu/perf-memory-e2e-tests branch from 31cb779 to 58ed9ae Compare June 16, 2026 07:31
@DingmaomaoBJTU DingmaomaoBJTU merged commit 576c7dc into main Jun 16, 2026
9 checks passed
@DingmaomaoBJTU DingmaomaoBJTU deleted the dingmaomaobjtu/perf-memory-e2e-tests branch June 16, 2026 07:51
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.

2 participants