/ashlr-benchmark
Run the ashlr token-savings benchmark against the current project's files.
When to use
When you want empirical savings data on your specific codebase, not the median from the default benchmark suite.
What it does
- Finds a sample of TypeScript/JavaScript files in the project (up to 20, skipping
node_modules) - For each file: reads it with the built-in
Readtool (byte count viawc -c), then reads it withashlr__read(returned payload size) - Computes per-file savings percentage and aggregates to a median
- Reports the result and writes it to
.ashlrcode/benchmark.json
Output
Related
/ashlr-savings— live accumulated savings/ashlr-badge— generate a badge from the savings data