Skip to content

Compare benchmark top lists using median ops/s - #188

Merged
nulltask merged 2 commits into
develfrom
cursor/bench-median-top-compare-3565
Aug 23, 2026
Merged

Compare benchmark top lists using median ops/s#188
nulltask merged 2 commits into
develfrom
cursor/bench-median-top-compare-3565

Conversation

@nulltask

@nulltask nulltask commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Top Regressions and Top Improvements were ranking cases by tinybench mean throughput (hz = throughput.mean). The overall verdict already used the median of those mean-based deltas, so the per-case lists still highlighted mean-sensitive outliers.

This change records tinybench p50 as medianHz / p50Ms and uses median ops/s for per-case comparison.

  • convertTaskResult now stores mean and median throughput separately
  • compareSnapshots and the Top lists use median ops/s (falling back to mean hz on older snapshots)
  • Markdown columns say “median ops/s” so the report matches the comparison
  • Tests cover the mean-vs-median ranking case

No package changeset: this is bench-script tooling only.

cursoragent and others added 2 commits August 23, 2026 09:10
Top Regressions and Top Improvements were ranking cases by tinybench mean throughput. Record p50 and use that for per-case deltas so the lists match the median comparison signal.

Co-authored-by: Seiya KONNO <nulltask@gmail.com>
Co-authored-by: Seiya KONNO <nulltask@gmail.com>
@nulltask
nulltask marked this pull request as ready for review August 23, 2026 09:10
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 23, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
be-music-player-demo 48067d5 Commit Preview URL

Branch Preview URL
Aug 23 2026, 09:11 AM

@nulltask
nulltask merged commit 3c3103b into devel Aug 23, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

Exports Benchmark

  • Base SHA: 2465ccde93e5
  • Head SHA: 48067d5c7afd
  • Comparable cases: 243
  • Regression threshold: 8.00%
  • Overall verdict uses the median change across cases.
  • Per-case lists compare median ops/s, not mean.
  • Base runs: median of 3
  • Head runs: median of 3

Summary

Metric Value
Overall unchanged
Median change +0.83%
Mean change +0.52%
Cases improved (>= threshold) 4
Cases regressed (<= -threshold) 2
Cases unchanged 237
Head benchmarked cases 243
Head skipped cases 21

Top Regressions

API Base median ops/s Head median ops/s Change
player-web.resolveRendererPreference 3389753.88 2604166.62 -23.18%
utils.resolveCliPath 6877032.72 6250000.02 -9.12%

Top Improvements

API Base median ops/s Head median ops/s Change
audio-renderer.renderJson 356.78 400.91 +12.37%
audio-renderer.renderChartFile 187.41 205.40 +9.60%
player.playlog.simulatePlaylog 14422.41 15724.26 +9.03%
player-web.readDroppedFiles 2208927.40 2403846.14 +8.82%

nulltask added a commit that referenced this pull request Aug 23, 2026
…-3565

Compare benchmark top lists using median ops/s
nulltask added a commit that referenced this pull request Aug 23, 2026
…-3565

Compare benchmark top lists using median ops/s
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