Skip to content

Add CodSpeed performance benchmarking#2

Draft
codspeed-hq[bot] wants to merge 1 commit intomainfrom
codspeed-wizard-1771439294883
Draft

Add CodSpeed performance benchmarking#2
codspeed-hq[bot] wants to merge 1 commit intomainfrom
codspeed-wizard-1771439294883

Conversation

@codspeed-hq
Copy link

@codspeed-hq codspeed-hq bot commented Feb 18, 2026

Summary

This PR integrates CodSpeed for continuous performance benchmarking of scipp. It adds pytest-codspeed benchmarks that mirror the existing ASV benchmarks and sets up a GitHub Actions workflow to run them automatically on every push to main and on pull requests.

Changes

  • New benchmark files (benchmarks/test_variable.py, benchmarks/test_bin.py, benchmarks/test_binned.py): 29 pytest-codspeed benchmarks covering:
    • Variable operations (copy, inplace/non-inplace arithmetic, numpy assignment)
    • 1D and 2D binning with various parameter sizes
    • Binned data operations (constituents, size, sum, concat)
    • Grouping operations
  • CI workflow (.github/workflows/codspeed.yml): GitHub Actions workflow that installs scipp from PyPI and runs the benchmarks using CodSpeedHQ/action@v4 in simulation mode with OIDC authentication
  • README badge: Added a CodSpeed badge linking to the project dashboard

Next steps

  • After merging, CodSpeed will automatically track performance across commits and flag regressions on pull requests
  • The existing ASV benchmarks remain untouched and can continue to be used independently
  • Benchmark coverage can be expanded over time by adding more test_* functions to the benchmarks/ directory

@codspeed-hq codspeed-hq bot force-pushed the codspeed-wizard-1771439294883 branch from 3e2bf13 to 8b9c92a Compare February 18, 2026 18:39
Add pytest-codspeed benchmarks covering variable operations, binning,
and binned data operations. Create GitHub Actions workflow for continuous
performance tracking. Add CodSpeed badge to README.
@codspeed-hq codspeed-hq bot force-pushed the codspeed-wizard-1771439294883 branch from 8b9c92a to 95da247 Compare February 18, 2026 18:49
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.

0 participants