{
    "schema_version": 1,
    "license": "CC BY 4.0",
    "citation": "Kuzeyhan Demir, ASAMB, Compact vs pretty-printed JSON: CPU cost and transfer-size trade-off, measurement run 2026-07-22T15:23:56+00:00",
    "environment": {
        "generated_at": "2026-07-22T15:23:56+00:00",
        "php_version": "8.4.23",
        "php_sapi": "cli",
        "os": "Linux 4.18.0-553.85.1.el8_10.x86_64",
        "architecture": "x86_64",
        "cpu": "AMD EPYC-Rome Processor",
        "memory": "15.02 GiB host total",
        "opcache_cli": "0",
        "memory_limit": "1024M",
        "extensions": [
            "json",
            "openssl",
            "zlib",
            "mbstring",
            "pdo_sqlite"
        ],
        "timezone": "UTC",
        "clock": "hrtime(true)",
        "rounds": 7
    },
    "study": {
        "slug": "json-encoding-layout",
        "iterations_per_sample": 70,
        "rounds": 7,
        "winner": "Compact JSON",
        "slowest": "Pretty JSON",
        "spread_percent": 26.94,
        "variants": {
            "Compact JSON": {
                "median_ns_per_op": 225359.1,
                "p25_ns_per_op": 225062.96,
                "p75_ns_per_op": 232093.97,
                "ops_per_second": 4437.36,
                "samples_ns_per_op": [
                    225359.1,
                    223897.07,
                    224899.09,
                    225226.84,
                    228546.96,
                    235640.99,
                    238648.79
                ],
                "extra": {
                    "output_bytes": 67457
                }
            },
            "Pretty JSON": {
                "median_ns_per_op": 286060.16,
                "p25_ns_per_op": 278639.71,
                "p75_ns_per_op": 289801.03,
                "ops_per_second": 3495.77,
                "samples_ns_per_op": [
                    278077.01,
                    286060.16,
                    277745.39,
                    279202.4,
                    302325.83,
                    287855.67,
                    291746.39
                ],
                "extra": {
                    "output_bytes": 135058
                }
            }
        }
    }
}