{
  "measured_at": "2026-10-05T18:49:24.160Z",
  "host": {
    "platform": "darwin",
    "release": "27.0.0",
    "architecture": "arm64",
    "cpu": "Apple M3 Max"
  },
  "input": {
    "slug": "scholarship-guide",
    "extraction": "extractThaiBlockText from scripts/lib/thai-html-walk.mjs",
    "code_points": 47003,
    "utf8_bytes": 123848,
    "sha256": "11974a99862a20969417aeb55f9dcf8515be9316c018e2a93c9ffedd6d3929cc"
  },
  "methodology": {
    "warmups": 5,
    "runs": 30,
    "summary": "median and nearest-rank p95; full token arrays materialized, whitespace retained",
    "excluded": "installation, downloads, process startup, HTML parsing, browser layout; setup/import and first call reported separately",
    "caveat": "Different tokenizers and safe modes produce different outputs; timing is not a quality comparison. Node Intl results are not browser measurements."
  },
  "results": [
    {
      "name": "Intl.Segmenter (Node)",
      "version": "Node v25.8.2; ICU 78.3",
      "setup_ms": 7.779291999999998,
      "first_call_ms": 6.679417000000001,
      "token_count": 14649,
      "median_ms": 3.0980414999999937,
      "p95_ms": 3.9579589999999882,
      "min_ms": 2.7975829999999746,
      "max_ms": 4.390457999999967,
      "samples_ms": [
        2.994374999999991,
        3.1213750000000005,
        3.9579589999999882,
        2.9824579999999514,
        2.888166999999953,
        2.971499999999992,
        3.535500000000013,
        3.123207999999977,
        3.1007079999999974,
        2.9568330000000174,
        3.573249999999973,
        2.817124999999976,
        2.7975829999999746,
        2.9947919999999613,
        3.5988330000000133,
        2.880416000000025,
        2.8814590000000067,
        2.882833000000005,
        2.993915999999956,
        3.3937500000000114,
        3.435457999999983,
        3.280708000000004,
        4.390457999999967,
        3.136708999999996,
        2.948249999999973,
        3.006958999999995,
        3.133958000000007,
        3.09537499999999,
        3.189624999999978,
        3.1876660000000356
      ]
    },
    {
      "name": "nlpo3-newmm-typescript (safe=false)",
      "version": "1.1.0",
      "setup_ms": 84.36537500000003,
      "first_call_ms": 23.786541999999997,
      "token_count": 13004,
      "median_ms": 12.868937500000015,
      "p95_ms": 15.786624999999958,
      "min_ms": 10.518167000000062,
      "max_ms": 18.286542000000054,
      "samples_ms": [
        12.113624999999956,
        13.405291000000034,
        18.286542000000054,
        13.052749999999946,
        13.142541999999935,
        14.844165999999973,
        15.786624999999958,
        11.693750000000023,
        12.69558399999994,
        12.584959000000026,
        13.655750000000012,
        12.381750000000011,
        13.268334000000095,
        12.135667000000012,
        12.970708999999943,
        11.895167000000015,
        11.576166999999941,
        11.193291000000045,
        14.703375000000051,
        10.518167000000062,
        13.417416000000003,
        12.767166000000088,
        13.94175000000007,
        12.247083999999973,
        11.056374999999889,
        14.233583000000067,
        13.096416999999974,
        11.173874999999953,
        12.706000000000017,
        13.52491699999996
      ]
    },
    {
      "name": "nlpo3-newmm-typescript (safe=true)",
      "version": "1.1.0",
      "setup_ms": 54.15250000000003,
      "first_call_ms": 11.78729199999998,
      "token_count": 13006,
      "median_ms": 11.722416500000008,
      "p95_ms": 13.37883399999987,
      "min_ms": 10.72183300000006,
      "max_ms": 13.453125,
      "samples_ms": [
        12.663084000000026,
        13.057790999999952,
        11.720749999999953,
        13.041750000000093,
        11.039749999999913,
        11.724083000000064,
        11.668499999999995,
        12.491125000000011,
        10.72183300000006,
        11.267959000000019,
        12.408750000000055,
        11.32400000000007,
        11.424458999999842,
        12.17454100000009,
        10.859375,
        11.327166000000034,
        13.37883399999987,
        11.59458299999983,
        11.707000000000107,
        11.160667000000103,
        13.453125,
        11.847582999999986,
        12.216333000000077,
        11.52495900000008,
        12.228166999999985,
        11.636624999999867,
        12.654500000000098,
        12.095708999999943,
        11.268790999999965,
        13.328958000000057
      ]
    },
    {
      "name": "wordcut",
      "version": "0.9.1",
      "setup_ms": 83.4911669999999,
      "first_call_ms": 100.29137500000002,
      "token_count": 14334,
      "median_ms": 85.83043749999979,
      "p95_ms": 92.76087499999994,
      "min_ms": 80.99058400000013,
      "max_ms": 124.99541700000009,
      "samples_ms": [
        83.9526249999999,
        83.40066700000034,
        86.14691700000003,
        85.75633400000015,
        92.04212499999994,
        84.23229100000026,
        86.82533299999977,
        84.9043330000004,
        85.79291699999976,
        84.19020899999987,
        87.49070800000027,
        87.65758400000004,
        86.117166,
        87.95512499999995,
        92.76087499999994,
        91.11508400000002,
        124.99541700000009,
        86.34066699999994,
        82.11408299999994,
        83.58795899999996,
        84.75733300000002,
        84.73000000000002,
        85.40654200000017,
        86.12075000000004,
        86.73295800000051,
        87.73654199999964,
        85.86795799999982,
        83.86320799999976,
        80.99058400000013,
        84.7244580000006
      ]
    },
    {
      "name": "PyThaiNLP newmm",
      "version": "5.3.8",
      "python": "3.14.3",
      "setup_ms": 77.08345795981586,
      "first_call_ms": 187.6112089958042,
      "token_count": 12699,
      "samples_ms": [
        54.38399995910004,
        55.18166598631069,
        56.23554199701175,
        54.88750000949949,
        56.651499995496124,
        56.803040963131934,
        58.477833052165806,
        55.79324997961521,
        56.31787498714402,
        54.82120800297707,
        55.46070798300207,
        55.49004202475771,
        55.23687502136454,
        54.05579099897295,
        55.639458005316556,
        55.983749974984676,
        55.12999999336898,
        55.75662502087653,
        56.27533403458074,
        54.15079201338813,
        55.70704099955037,
        54.847082996275276,
        53.46983298659325,
        55.19245896721259,
        55.180625000502914,
        54.55466703278944,
        55.40145898703486,
        55.1737499772571,
        54.90966700017452,
        55.89079100172967
      ],
      "median_ms": 55.3191670041997,
      "p95_ms": 56.803040963131934,
      "min_ms": 53.46983298659325,
      "max_ms": 58.477833052165806
    },
    {
      "name": "PyThaiNLP newmm-safe",
      "version": "5.3.8",
      "python": "3.14.3",
      "setup_ms": 39.091166050639,
      "first_call_ms": 170.67362501984462,
      "token_count": 12701,
      "samples_ms": [
        42.08766698138788,
        42.06233401782811,
        43.524582986719906,
        42.09183400962502,
        41.18583298986778,
        42.67020901897922,
        42.293415986932814,
        42.208333034068346,
        42.05774998990819,
        41.685584001243114,
        41.59583296859637,
        42.55779198138043,
        41.73195798648521,
        43.73754101106897,
        42.13024995988235,
        41.7082499479875,
        41.32062499411404,
        41.197874990757555,
        41.548000008333474,
        42.059625033289194,
        42.171375011093915,
        42.44187497533858,
        44.773624977096915,
        40.159374999348074,
        40.909625007770956,
        40.92537495307624,
        40.96812504576519,
        41.49258299730718,
        42.45937499217689,
        41.96100000990555
      ],
      "median_ms": 42.05868751159869,
      "p95_ms": 43.73754101106897,
      "min_ms": 40.159374999348074,
      "max_ms": 44.773624977096915
    }
  ],
  "extensions": {
    "neural": {
      "input": {
        "code_points": 47003,
        "utf8_bytes": 123848,
        "sha256": "11974a99862a20969417aeb55f9dcf8515be9316c018e2a93c9ffedd6d3929cc"
      },
      "measured_at_by_engine": {
        "PyThaiNLP attacut": "2026-10-05T22:13:22Z",
        "PyThaiNLP deepcut": "2026-10-05T22:15:13Z"
      },
      "host": {
        "platform": "darwin",
        "release": "27.0.0",
        "architecture": "arm64",
        "cpu": "Apple M3 Max"
      },
      "methodology": {
        "warmups": 5,
        "runs": 30,
        "device": "cpu",
        "model_loading": "Preload each default model before first segmentation; import and model loading reported separately, one observation each, process startup excluded. OS/library caches may be warm.",
        "configuration": "Unmodified PyThaiNLP wrappers; AttaCut attacut-sc with default 12 PyTorch intra-op threads; DeepCut default prediction batches and verbosity, TensorFlow default threading, TF_USE_LEGACY_KERAS=1, no GPU.",
        "output": "Full token lists including whitespace; concatenation verified equal to input.",
        "caveat": "Different framework/runtime/model/thread settings affect timing; not a tokenizer accuracy comparison."
      },
      "results": [
        {
          "name": "PyThaiNLP attacut",
          "version": "5.3.8",
          "engine_version": "1.0.6",
          "python": "3.12.13",
          "framework": {
            "torch": "2.14.1",
            "intra_op_threads": 12,
            "model": "attacut-sc",
            "device": "cpu"
          },
          "import_ms": 7111.4022500114515,
          "model_load_ms": 9.593750000931323,
          "setup_ms": 7120.996000012383,
          "first_call_ms": 305.092082999181,
          "token_count": 14196,
          "samples_ms": [
            278.61508302157745,
            282.31216699350625,
            281.6472909762524,
            293.37720799958333,
            281.7432919982821,
            274.61795799899846,
            273.92329199938104,
            274.06249998603016,
            274.4716249871999,
            274.6272499789484,
            274.37099994858727,
            273.02133303601295,
            272.92991598369554,
            271.6927499859594,
            272.6544589968398,
            273.02137500373647,
            273.8797910278663,
            274.44133296376094,
            277.61633397312835,
            275.4434170201421,
            274.12758296122774,
            274.6247500181198,
            274.9774170224555,
            275.55862499866635,
            272.67816598759964,
            274.4000420207158,
            274.59258399903774,
            275.6317079765722,
            274.2888749926351,
            274.6635829680599
          ],
          "median_ms": 274.5321044931188,
          "p95_ms": 282.31216699350625,
          "min_ms": 271.6927499859594,
          "max_ms": 293.37720799958333
        },
        {
          "name": "PyThaiNLP deepcut",
          "version": "5.3.8",
          "engine_version": "0.7.0.0",
          "python": "3.12.13",
          "framework": {
            "tensorflow": "2.16.2",
            "tf_keras": "2.16.0",
            "model": "cnn_without_ne_ab.h5",
            "device": "cpu",
            "thread_policy": "TensorFlow default",
            "gpus": []
          },
          "import_ms": 26477.1276669926,
          "model_load_ms": 136.64183398941532,
          "setup_ms": 26613.769500982016,
          "first_call_ms": 5876.252832997125,
          "token_count": 14089,
          "samples_ms": [
            2024.5501669705845,
            2029.7274999902584,
            2037.218915997073,
            1964.8107499815524,
            2029.2743750032969,
            2094.370832957793,
            1983.3901249803603,
            2050.94295804156,
            2070.3667090274394,
            2001.628041965887,
            1998.1104169855826,
            1984.6251249546185,
            2091.7665410088375,
            2302.4952920386568,
            2174.116916023195,
            2065.945542010013,
            2258.3133339649066,
            2070.7997500430793,
            2106.5384169924073,
            2182.478958973661,
            2093.9665000187233,
            2120.884250034578,
            2063.0093749496154,
            2073.800250014756,
            2210.2809170028195,
            2087.9083749605343,
            2086.016124987509,
            2187.0385829824954,
            2279.4500840245746,
            2396.9015830080025
          ],
          "median_ms": 2079.9081875011325,
          "p95_ms": 2302.4952920386568,
          "min_ms": 1964.8107499815524,
          "max_ms": 2396.9015830080025
        }
      ]
    },
    "browser": {
      "measured_at": "2026-10-05T22:15:54.406Z",
      "host": {
        "platform": "darwin",
        "release": "27.0.0",
        "architecture": "arm64",
        "cpu": "Apple M3 Max"
      },
      "runtime": {
        "browser": "Headless Chromium 149.0.7827.55",
        "executable": "chrome-headless-shell"
      },
      "input": {
        "code_points": 47003,
        "utf8_bytes": 123848,
        "sha256": "11974a99862a20969417aeb55f9dcf8515be9316c018e2a93c9ffedd6d3929cc"
      },
      "methodology": {
        "warmups": 5,
        "runs": 30,
        "granularity": "word",
        "locale": "th",
        "setup": "One fresh browser context per engine, uncompressed loopback HTTP; import/fetch/compile/instantiate included. Browser process and OS caches may be warm. Not an internet download or cold-start average.",
        "summary": "median and nearest-rank p95; full string arrays, whitespace retained; no rendering"
      },
      "wasm_asset": {
        "bytes": 31686181,
        "gzip_bytes": 12826940,
        "sha256": "4017a9d417b52f7b18a9e5b15813484324a2830377b03227c4e6b1396cdac190"
      },
      "results": [
        {
          "name": "Intl.Segmenter (Chromium)",
          "version": "149.0.7827.55",
          "setup_ms": 5.699999988079071,
          "first_call_ms": 6.5,
          "token_count": 14707,
          "samples_ms": [
            2.399999976158142,
            2.400000035762787,
            2.599999964237213,
            2.699999988079071,
            2.600000023841858,
            2.399999976158142,
            2.400000035762787,
            2.399999976158142,
            2.900000035762787,
            2.5,
            2.599999964237213,
            2.800000011920929,
            2.300000011920929,
            2.300000011920929,
            2.599999964237213,
            2.400000035762787,
            2.199999988079071,
            2.399999976158142,
            2.600000023841858,
            2.300000011920929,
            2.399999976158142,
            2.600000023841858,
            2.299999952316284,
            2.400000035762787,
            2.599999964237213,
            2.300000011920929,
            2.300000011920929,
            2.600000023841858,
            2.299999952316284,
            2.400000035762787
          ],
          "median_ms": 2.400000035762787,
          "p95_ms": 2.800000011920929,
          "min_ms": 2.199999988079071,
          "max_ms": 2.900000035762787,
          "resources": []
        },
        {
          "name": "ICU/WASM (Chromium)",
          "version": "@echogarden/icu-segmentation-wasm 0.4.0",
          "setup_ms": 69.10000002384186,
          "first_call_ms": 11.199999988079071,
          "token_count": 14649,
          "samples_ms": [
            2.699999988079071,
            3.199999988079071,
            2.800000011920929,
            3,
            2.699999988079071,
            2.900000035762787,
            2.599999964237213,
            2.800000011920929,
            2.900000035762787,
            2.799999952316284,
            2.900000035762787,
            2.599999964237213,
            3,
            2.600000023841858,
            2.600000023841858,
            2.799999952316284,
            2.700000047683716,
            2.799999952316284,
            2.800000011920929,
            2.600000023841858,
            2.800000011920929,
            2.799999952316284,
            2.700000047683716,
            3.099999964237213,
            2.600000023841858,
            2.699999988079071,
            2.600000023841858,
            2.599999964237213,
            2.900000035762787,
            2.599999964237213
          ],
          "median_ms": 2.799999952316284,
          "p95_ms": 3.099999964237213,
          "min_ms": 2.599999964237213,
          "max_ms": 3.199999988079071,
          "resources": [
            {
              "name": "/icu/dist/exports/Exports.js",
              "duration_ms": 2.699999988079071,
              "transfer_bytes": 3896,
              "decoded_bytes": 3596
            },
            {
              "name": "/heap/dist/exports/WasmHeapManager.js",
              "duration_ms": 1.199999988079071,
              "transfer_bytes": 86097,
              "decoded_bytes": 85797
            },
            {
              "name": "/heap/dist/encodings/Utf8.js",
              "duration_ms": 2,
              "transfer_bytes": 4008,
              "decoded_bytes": 3708
            },
            {
              "name": "/heap/dist/utilities/IEEE754Converter.js",
              "duration_ms": 2.5,
              "transfer_bytes": 1085,
              "decoded_bytes": 785
            },
            {
              "name": "/heap/dist/encodings/Ascii.js",
              "duration_ms": 2.699999988079071,
              "transfer_bytes": 1862,
              "decoded_bytes": 1562
            },
            {
              "name": "/heap/dist/encodings/Utf16.js",
              "duration_ms": 2.799999952316284,
              "transfer_bytes": 1571,
              "decoded_bytes": 1271
            },
            {
              "name": "/heap/dist/encodings/Utf32.js",
              "duration_ms": 2.799999952316284,
              "transfer_bytes": 1364,
              "decoded_bytes": 1064
            },
            {
              "name": "/heap/dist/utilities/Utilities.js",
              "duration_ms": 2.699999988079071,
              "transfer_bytes": 1494,
              "decoded_bytes": 1194
            },
            {
              "name": "/heap/dist/utilities/Endianess.js",
              "duration_ms": 3.100000023841858,
              "transfer_bytes": 1906,
              "decoded_bytes": 1606
            },
            {
              "name": "/icu/wasm/icu-segmentation.js",
              "duration_ms": 1,
              "transfer_bytes": 59543,
              "decoded_bytes": 59243
            },
            {
              "name": "/icu/wasm/icu-segmentation.wasm",
              "duration_ms": 39.89999997615814,
              "transfer_bytes": 31686481,
              "decoded_bytes": 31686181
            }
          ]
        }
      ]
    }
  }
}
