This repository includes a reproducible benchmark fixture:
benchmarks/fixtures/paginated-users.jsonIt models a Laravel-style paginated API response with repeated user fields, pagination metadata, and links. The data is synthetic and repository-generated so it is safe to reuse in documentation and demos.
php benchmarks/run.php benchmarks/fixtures/paginated-users.json
Output from the current package version:
{
"fixture": "benchmarks/fixtures/paginated-users.json",
"json_chars": 2622,
"toon_chars": 1492,
"saved_chars": 1130,
"savings_percent": 43.1,
"json_tokens_estimate": 656,
"toon_tokens_estimate": 373,
"saved_tokens_estimate": 283
}
Toon::diff().How can I help you explore Laravel packages today?