Skip to content

add benchmarks page with interactive charts#494

Merged
cs01 merged 1 commit intomainfrom
benchmarks-page
Apr 8, 2026
Merged

add benchmarks page with interactive charts#494
cs01 merged 1 commit intomainfrom
benchmarks-page

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Apr 7, 2026

Summary

  • The /benchmarks page was blank because it referenced a <BenchmarkBars /> component that didn't exist
  • Created BenchmarkBars.vue — shows all benchmarks where ChadScript places top 3, grouped by 1st place / top 3
  • Fleshed out benchmarks.md with methodology section and reproduction instructions
  • Uses the filtered benchmarks.json (top-3 only) so we don't show benchmarks where ChadScript looks bad

Test plan

  • Verify /benchmarks page renders with bar charts
  • Check mobile layout
  • Verify data loads from benchmarks.json

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Benchmark Results (Linux x86-64)

Benchmark C ChadScript Go Node Bun Place
Binary Trees 1.357s 1.182s 2.674s 1.150s 0.993s 🥉
Cold Start 0.9ms 0.8ms 1.2ms 25.7ms 8.7ms 🥇
Fibonacci 0.821s 1.472s 1.557s 3.183s 1.938s 🥈
File I/O 0.122s 0.091s 0.085s 0.199s 0.171s 🥈
JSON Parse/Stringify 0.004s 0.005s 0.017s 0.015s 0.007s 🥈
Matrix Multiply 0.444s 0.714s 0.608s 0.371s 0.342s #5
Monte Carlo Pi 0.389s 0.410s 0.405s 2.249s 6.024s 🥉
N-Body Simulation 1.671s 2.120s 2.203s 2.386s 3.254s 🥈
Quicksort 0.214s 0.245s 0.213s 0.262s 0.226s #4
SQLite 0.361s 0.398s 0.416s 0.405s 🥈
Sieve of Eratosthenes 0.015s 0.028s 0.020s 0.039s 0.036s 🥉
String Manipulation 0.008s 0.044s 0.017s 0.037s 0.027s #5

CLI Tool Benchmarks

Benchmark ChadScript grep node xxd Place
Hex Dump 0.426s 0.917s 0.128s 🥈
Recursive Grep 0.018s 0.009s 0.095s 🥈

@cs01 cs01 merged commit d561e34 into main Apr 8, 2026
13 checks passed
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.

1 participant