Skip to content

Add benchmarking module#3

Open
maskedsyntax wants to merge 1 commit intomasterfrom
benchmarking
Open

Add benchmarking module#3
maskedsyntax wants to merge 1 commit intomasterfrom
benchmarking

Conversation

@maskedsyntax
Copy link
Copy Markdown
Member

Summary

  • New comprexx.benchmark module with cx.benchmark() and cx.compare_benchmarks() for measuring real inference latency (warmup, mean/median/std, p50/p90/p99, throughput).
  • BenchmarkResult and BenchmarkComparison dataclasses with summary() / to_json(). Quantized models automatically run on CPU; CUDA sync handled.
  • New comprexx bench CLI command.
  • README usage section and CHANGELOG entry.

Test plan

  • 11 new unit tests in tests/unit/test_benchmark.py
  • Full suite: 174 passed
  • ruff check clean

Adds cx.benchmark() and cx.compare_benchmarks() for measuring real
inference latency with warmup, percentiles, and throughput. Includes
a 'comprexx bench' CLI command and README/CHANGELOG entries.
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.

1 participant