Benchmark results: TOON vs JSON
mainTOON (Token-Oriented Object Notation) provides significant savings in both file size and LLM token usage compared to JSON. Across 50 real-world datasets, TOON achieved an average of 63.9% smaller file sizes and 54.1% fewer tokens for LLM APIs.
Key Benefits for LLM Users
- Lower API Costs: Reduces token usage by over half on average.
- Faster Responses: Less data to transmit results in lower latency.
- Increased Context: More data can fit within the LLM's context window.
Performance by Category
| Category | Avg Size Savings | Avg Token Savings |
|---|---|---|
| Tabular Data | 69.2% | 59.8% |
| E-commerce | 66.1% | 56.4% |
| Analytics | 65.7% | 55.2% |
| API Data | 58.3% | 48.9% |
| IoT/Sensors | 60.0% | 43.7% |
| Social/Content | 61.5% | 52.1% |