ASON Wins
-
out of 5 datasets
Avg Reduction
-
vs JSON baseline
vs Toon
-
average difference
Tokenizer Model
Select which model's tokenizer to use for counting
Dataset JSON ASON Toon Winner ASON vs JSON Toon vs JSON

Key Findings

ASON wins 3 out of 5 datasets — Best for uniform arrays and mixed structures
Both formats struggle with non-uniform data — JSON is better for deeply nested/irregular structures
ASON consistently outperforms Toon — Even when ASON loses to JSON, it loses less than Toon
Token Approximation

Values are approximate (chars/4). For precise results:

cd nodejs-compressor && node benchmarks/toon-comparison-benchmark.js