Skip to content

Add benchmarking module#3

Merged
maskedsyntax merged 1 commit intomasterfrom
benchmarking
Apr 10, 2026
Merged

Add benchmarking module#3
maskedsyntax merged 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.
@maskedsyntax maskedsyntax mentioned this pull request Apr 10, 2026
3 tasks
@maskedsyntax maskedsyntax merged commit f153d66 into master Apr 10, 2026
4 checks passed
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