Skip to content

Conversation

ImBIOS
Copy link

@ImBIOS ImBIOS commented Jul 23, 2025

🎯 Purpose

This PR adds rank numbers to the benchmark results display in the web interface to make performance comparisons more accessible for presentations and quick analysis.

📋 Changes

  • Display rank numbers: Each library now shows its ranking position (e.g., #1 typia, #2 ajv) next to the library name
  • Smart ranking calculation: Rankings are calculated based on average performance across all selected benchmarks
  • Multi-sort support: Ranking works correctly with all three sorting modes:
    • Fastest: Ranks by average operations per second (descending)
    • Alphabetical: Maintains alphabetical order with rank numbers
    • Popularity: Ranks by npm weekly downloads
  • Performance-aware: When multiple benchmarks are selected, uses average ops/sec for fair comparison

🖼️ Visual Impact

Before: Library names displayed without ranking context
After: Clear rank indicators (#1, #2, #3, etc.) make it easy to identify top performers at a glance

🧪 Testing

  • ✅ TypeScript compilation passes
  • ✅ Build process completes successfully
  • ✅ All sorting modes work correctly with rankings
  • ✅ Multi-benchmark averaging works as expected

💼 Business Value

Makes benchmark presentations more professional and easier to understand for stakeholders by providing clear performance rankings without requiring detailed analysis of raw numbers.

Closes #2062

ImBIOS added 2 commits July 23, 2025 11:03
- Display rank numbers (moltar#1, moltar#2, etc.) next to library names in charts
- Calculate rankings based on average performance across selected benchmarks
- Support ranking for all sort modes (fastest, alphabetical, popularity)
- Improve readability for performance comparison presentations

Closes moltar#2062
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.

Add rank number in the web for easier presentation to my Boss
1 participant