Skip to content

Add analyze-benchmarks command for pytest-benchmark visualization#76

Merged
tschm merged 2 commits intomainfrom
analyze_benchmark
Feb 8, 2026
Merged

Add analyze-benchmarks command for pytest-benchmark visualization#76
tschm merged 2 commits intomainfrom
analyze_benchmark

Conversation

@tschm
Copy link
Member

@tschm tschm commented Feb 8, 2026

Adds a new command to analyze and visualize pytest-benchmark results:

  • Reads benchmarks.json produced by pytest-benchmark
  • Prints sorted table with benchmark names, mean milliseconds, and OPS
  • Generates interactive Plotly bar chart visualization
  • Saves HTML report for sharing results
  • Gracefully handles missing or invalid benchmark files

The command requires pandas and plotly from the dev dependency group.

Usage:
rhiza-tools analyze-benchmarks
rhiza-tools analyze-benchmarks --benchmarks-json path/to/benchmarks.json

Adds a new command to analyze and visualize pytest-benchmark results:
- Reads benchmarks.json produced by pytest-benchmark
- Prints sorted table with benchmark names, mean milliseconds, and OPS
- Generates interactive Plotly bar chart visualization
- Saves HTML report for sharing results
- Gracefully handles missing or invalid benchmark files

The command requires pandas and plotly from the dev dependency group.

Usage:
  rhiza-tools analyze-benchmarks
  rhiza-tools analyze-benchmarks --benchmarks-json path/to/benchmarks.json

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tschm tschm requested a review from HarryCampion February 8, 2026 13:11
@tschm tschm merged commit 78d7f06 into main Feb 8, 2026
15 checks passed
@tschm tschm deleted the analyze_benchmark branch February 8, 2026 16:40
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.

2 participants