Skip to content

[B] Benchmark harness — pytest-benchmark + asv setup #626

Closed

Description

@AmitoVrito

Goal

Stand up a reproducible benchmark harness used by every other [B] issue.

Scope

  • pytest-benchmark for micro-benchmarks
  • airspeed velocity (asv) for historical regression tracking
  • Common fixtures: deterministic seeds, warmup, cooldown, percentile reporting (p50/p95/p99)
  • Per-run metadata: git SHA, Python version, OS, CPU, RAM

Sub-tasks

  • Add benchmarks/ top-level dir + pyproject group
  • pytest-benchmark config (autosave, histogram, sort=mean)
  • asv config + machine.json
  • Make targets: make bench, make bench-compare
  • CI workflow that runs on tag + nightly

Definition of done

  • One canonical command runs full suite
  • Results published as JSON artifact
  • Regression alert on >10% slowdown

Activity

  1. added
    performance
    benchmark
    post-v2.0
    on May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    benchmarkperformancepost-v2.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions