Skip to content

test(e2e): add perf CLI tests for ONNX and per-module#665

Merged
xieofxie merged 7 commits into
mainfrom
hualxie/perf_e2e
May 19, 2026
Merged

test(e2e): add perf CLI tests for ONNX and per-module#665
xieofxie merged 7 commits into
mainfrom
hualxie/perf_e2e

Conversation

@xieofxie
Copy link
Copy Markdown
Contributor

@xieofxie xieofxie commented May 19, 2026

Summary

  • Refactor tests/e2e/test_perf_e2e.py into a shared _PerfBenchmarkSuite base class so the seven cross-cutting perf tests (CPU, verbose, GPU+monitor, NPU+monitor, auto device, QNN, QNN-on-GPU) only live in one place.
  • Add TestPerfONNXDirect (existing ONNX-fixture coverage)
  • Add TestPerfModule with two tests covering --module mode on microsoft/resnet-50: a successful ResNetStage per-module benchmark on CPU, and an invalid-module case that asserts the CLI fails and prints the list of available module class names.

@xieofxie xieofxie requested a review from a team as a code owner May 19, 2026 07:42
@xieofxie xieofxie changed the title test(e2e): add perf CLI tests for ONNX, HuggingFace, and per-module test(e2e): add perf CLI tests for ONNX and per-module May 19, 2026
Comment thread tests/e2e/test_perf_e2e.py Dismissed
@xieofxie
Copy link
Copy Markdown
Contributor Author

PerfHuggingFace will be added once analyze issue is resolved - only check one ep - or it will be too slow

…n overriding method'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Comment thread tests/e2e/test_perf_e2e.py
Comment thread tests/e2e/test_perf_e2e.py Outdated
@xieofxie xieofxie merged commit 29bb9e2 into main May 19, 2026
9 checks passed
@xieofxie xieofxie deleted the hualxie/perf_e2e branch May 19, 2026 09:04
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.

4 participants