{
    "schema_version": 1,
    "license": "CC BY 4.0",
    "citation": "Kuzeyhan Demir, ASAMB, Deduplicating repeated strings with array_unique or a keyed set, 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": "deduplication-strategies",
        "iterations_per_sample": 35,
        "rounds": 7,
        "winner": "array_unique",
        "slowest": "Keyed set",
        "spread_percent": 139.92,
        "variants": {
            "array_unique": {
                "median_ns_per_op": 48937.66,
                "p25_ns_per_op": 48825.59,
                "p75_ns_per_op": 51770.81,
                "ops_per_second": 20434.16,
                "samples_ns_per_op": [
                    48937.66,
                    50472.23,
                    53069.4,
                    48648.54,
                    48836.31,
                    48814.86,
                    63079.91
                ],
                "extra": []
            },
            "Keyed set": {
                "median_ns_per_op": 117410.29,
                "p25_ns_per_op": 116719.86,
                "p75_ns_per_op": 118568.74,
                "ops_per_second": 8517.14,
                "samples_ns_per_op": [
                    118270.17,
                    116543.23,
                    117410.29,
                    116896.49,
                    118867.31,
                    124850.29,
                    115549.4
                ],
                "extra": []
            }
        }
    }
}