Skip to content

Add bracket percentile to player benchmarks - #2979

Merged
howardchung merged 2 commits into
odota:masterfrom
geracosta:bracket-benchmarks
Aug 21, 2026
Merged

Add bracket percentile to player benchmarks#2979
howardchung merged 2 commits into
odota:masterfrom
geracosta:bracket-benchmarks

Conversation

@geracosta

@geracosta geracosta commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Adds a pct_bracket field next to pct in the match players' benchmarks: the same percentile computed against only the matches in this match's rank bracket, using the bracket zsets from #2972. The bracket is derived from the players' average rank with getMatchRankTier, same as the write side in counts.ts. Skipped for turbo (no bracket keys) and when the bracket zset is empty, so the field is additive and consumers that don't know about it see no change.

odota/web#3373 uses it to add a line to the benchmark tooltips: "Equal or higher than X% at this match's average rank".

Note: branched on top of #2978 since both touch the same lines of getPlayerBenchmarks (the deaths_per_min inversion applies to the bracket percentile too).

@howardchung
howardchung merged commit 8d0a715 into odota:master Aug 21, 2026
1 check passed
@geracosta
geracosta deleted the bracket-benchmarks branch August 21, 2026 19:33
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