このページは FormatArc のブログ記事が引用している実測の生データです。検索結果には表示されません (noindex)。
| File | Size |
|---|---|
| README.md | 5.8 KB |
| extensions.json | 5.4 KB |
| fetch_extensions.mjs | 4.4 KB |
| fetch_store_meta.mjs | 1.9 KB |
| gen_samples.mjs | 3.8 KB |
| measure.mjs | 6.5 KB |
| package-lock.json | 1.6 KB |
| package.json | 257 B |
| results.json | 17.1 KB |
# chrome-json-extensions benchmark
`chrome-extension-json-formatter` 記事 (4 locale) の比較表に載せる実測値の再現スクリプト一式。CLAUDE.md「数値の根拠提示 / 捏造禁止」ルール準拠。記事本文の数値は本ディレクトリの `results.json` と完全一致させる。
## What it measures
測定対象は `extensions.json` に登録した 7 拡張 (2026-07-09 に Chrome ウェブストアで実在確認済み)。
| 列 | 取得方法 | スクリプト |
|---|---|---|
| Manifest V3 対応 | CRX 展開後の manifest.json の `manifest_version` | `fetch_extensions.mjs` (自動) |
| ホスト権限スコープ | manifest.json の `permissions` / `host_permissions` / `content_scripts[].matches` | `fetch_extensions.mjs` (自動) |
| 自動整形の上限 (1/10/50/100MB) | ローカル HTTP サーバから `Content-Type: application/json` で配信した JSON を拡張ロード済み Chromium で開き、整形完了セレクタの出現をハング検出付きで待つ | `measure.mjs` (自動) |
| インストールサイズ | Chrome ウェブストア掲載ページの「サイズ」表示値を手動転記 (取得日 + 出典 URL を results.json に記録)。CRX の実バイト数を突き合わせ用に自動計測 | 手動 + `fetch_extensions.mjs` |
| 最終更新日 | Chrome ウェブストア掲載ページ表示値を手動転記 (取得日 + 出典 URL を記録) | 手動 |
| オープンソースか | 公開リポジトリの実在確認 (URL + 確認日を記録) | 手動 |
## How to reproduce
```bash
cd scripts/benchmarks/chrome-json-extensions
npm install
node gen_samples.mjs # テスト用 JSON 生成 (シード固定、byte-identical 再現)
node fetch_extensions.mjs # CRX ダウンロード + manifest 抽出
node measure.mjs # 自動整形ベンチ → results-raw.json
```
前提: FormatArc はローカル `chrome-extension/dist/` を読むため、事前に拡張のビルドが必要。
## Measurement protocol
- 判定は 4 値: `formatted` (整形完了セレクタ出現) / `skipped` (60 秒待ってもセレクタなしだがページは応答 = 拡張が整形を放棄) / `hang` (main thread ping 10 秒無応答) / `crash` (renderer クラッシュ)
- 拡張 × サイズごとに warmup 1 回 (MV3 service worker のコールドスタート除去) + 本試行 4 回
- 中央値 = 4 試行を昇順ソートした 2, 3 番目の平均。hang/crash/skipped は +Infinity 扱いで、中央値が Infinity のセルは非 formatted 判定
- サイズは昇順に実行し、非 formatted 判定が出たらそれ以上のサイズは `not_tested_after_hang` として打ち切り (打ち切りも results.json に明記)
- 1 拡張 = 1 個の使い捨て Playwright persistent context (プロファイル間干渉防止)
- 記事の「自動整形上限」列は outcome=formatted となった最大サイズを載せ、hang / skipped の区別は脚注で示す
## Caveats
- Playwright bundled Chromium (channel: chromium, headed) での測定。branded Chrome stable はバージョン 137 以降 `--load-extension` フラグを無視するため本ベンチには使えない。branded Chrome とは数百 ms 単位の差が出うる (Chromium バージョンを results.json に記録)
- CRX ダウンロードは非公式 update エンドポイント経由。取得不能時は実 Chrome にインストールしてプロファイルからコピー、それも不能なら "N/A (data not accessible <date>)" と記録
- FormatArc はポップアップ型 (activeTab のみ) でページ自動整形機能を持たないため、自動整形上限は N/A (measure.mjs の対象外)。これは仕様であり測定漏れではない
- Simple JSON Viewer は 2020 年から更新停止で Manifest V2 の疑い。現行 Chromium でロード不能な場合は `not_loadable` として記録する (それ自体が「競合記事が実態確認せずに推薦している」ことを示す記事素材)
- `extensions.json` の `formatted_selector` は初期値が仮置き (`selector_verified: false`)。実測前に各拡張を手動ロードして検証・修正すること
- ストア表示値 (サイズ / 最終更新日) は手動転記が正。スクレイプ値の無検証転記は別種の捏造リスクになるため行わない
## Files
- `extensions.json` — 対象 7 拡張のレジストリ (コミット対象)
- `gen_samples.mjs` — テスト JSON 生成 (samples/ は gitignore、再生成で byte-identical)
- `fetch_extensions.mjs` — CRX 取得 + manifest 事実抽出 (extensions-cache/ は gitignore)
- `measure.mjs` — 自動整形ベンチ本体 (results-raw.json は gitignore)
- `results.json` — 記事数値の唯一の根拠 (7/11 の実測後に作成してコミット)
## History
- 2026-07-09: 初版。7 拡張の実在確認で当初リストの RESTbird / JSON Awesome が Chrome ウェブストアに存在しないと判明 (出典が競合 AI 生成記事のみ)、JSON Lite / JSON Viewer (teocci) に差し替えた上でレジストリを確定 (詳細: `docs/seo/chrome-extension-decision-2026-07-08.md` 更新履歴)
- 2026-07-11: 本実測完了、results.json 初版コミット。実測前に全 6 autoformat 拡張の formatted_selector を実 DOM で検証 (仮置き selector は 4 拡張で不一致と判明し修正、素の Chromium 147 が application/json ページに挿入する pre + div.json-formatter-container への偽陽性 selector も排除)。simple-json-viewer (MV2) は Chromium 起動自体が 180 秒 timeout する not_loadable と確定 (清浄環境で 2 回再現)。json-viewer-pro のみ実行時間制約で 2 run 分割 (プロトコル遵守、results.json の run_note 参照)。ストア表示値 7 件は WebFetch 転記 + fetch_store_meta.mjs draft 突き合わせで確定
{
"measured_at": "2026-07-11",
"environment": {
"machine": "Apple M5 Pro (Mac mini)",
"os": "macOS 26.5.2 (Darwin 25.5.0)",
"node": "v26.3.1",
"chromium": "147.0.7727.15 (Playwright bundled, channel: chromium, headed)",
"chromium_note": "branded Chrome stable は 137 以降 --load-extension を無視するため本ベンチには使用不可 (README 参照)。CRX 取得エンドポイントの prodversion パラメータは 140.0.0.0"
},
"protocol": {
"trials_per_cell": 4,
"warmup_navigations": 1,
"format_wait_timeout_s": 60,
"responsiveness_ping_timeout_s": 10,
"median_rule": "4 試行の time_ms を昇順ソートし 2,3 番目の平均。hang/crash/skipped は +Infinity 扱い。中央値が Infinity のセルは非 formatted 判定"
},
"selector_verification": "extensions.json の selector_verification_note 参照。全 6 autoformat 拡張で実 DOM を検証済み (2026-07-11)。素の Chromium 147 は application/json ページに pre + div.json-formatter-container を挿入する (拡張なし baseline で実測) ため、これに一致する selector は偽陽性として排除済み",
"store_listing": {
"retrieved_at": "2026-07-11",
"method": "WebFetch (Anthropic remote fetch) による Chrome ウェブストア掲載ページの転記。fetch_store_meta.mjs の draft と突き合わせてから results.json に採録する。fetch_store_meta.mjs の draft と突き合わせ済み (json-viewer-teocci のみ draft が Overview 節を誤取得したため転記値を CRX manifest version と照合して確定)"
},
"extensions": [
{
"slug": "jsonview",
"name": "JSONView",
"store_url": "https://chromewebstore.google.com/detail/jsonview/gmegofmjomhknnokphhckolhcffdaihd",
"repo_url": "https://github.com/bhollis/jsonview",
"open_source": true,
"store_listing": {
"version": "3.2.0",
"size": "83.35KiB",
"updated": "May 19, 2025",
"users": "100,000",
"source_url": "https://chromewebstore.google.com/detail/jsonview/gmegofmjomhknnokphhckolhcffdaihd",
"retrieved_at": "2026-07-11"
},
"manifest_facts": {
"version": "3.2.0",
"manifest_version": 3,
"permissions": [
"webRequest",
"storage"
],
"host_permissions": [
"<all_urls>"
],
"content_script_matches": [
"<all_urls>"
],
"source": "crx_download",
"crx_download_bytes": 85352,
"crx_sha256": "360ab3ca2d0198195095177bd2a95fceea51c9108c06c846b0d39ecdc5000158",
"fetched_at": "2026-07-11"
},
"autoformat": {
"chromium_version": "147.0.7727.15",
"sizes": {
"1mb": {
"outcome": "formatted",
"trials": [
{
"outcome": "formatted",
"time_ms": 8768
},
{
"outcome": "formatted",
"time_ms": 8493
},
{
"outcome": "formatted",
"time_ms": 8967
},
{
"outcome": "formatted",
"time_ms": 8844
}
],
"median_ms": 8806
},
"10mb": {
"outcome": "hang",
"trials": [
{
"outcome": "hang"
},
{
"outcome": "hang"
},
{
"outcome": "formatted",
"time_ms": 19653
},
{
"outcome": "hang"
}
],
"median_ms": null
},
"50mb": {
"outcome": "not_tested_after_hang"
},
"100mb": {
"outcome": "not_tested_after_hang"
}
}
}
},
{
"slug": "json-formatter",
"name": "JSON Formatter",
"store_url": "https://chromewebstore.google.com/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa",
"repo_url": "https://github.com/callumlocke/json-formatter",
"open_source": true,
"store_listing": {
"version": "0.10.2",
"size": "20.35KiB",
"updated": "May 16, 2026",
"users": "2,000,000",
"source_url": "https://chromewebstore.google.com/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa",
"retrieved_at": "2026-07-11"
},
"manifest_facts": {
"version": "0.10.2",
"manifest_version": 3,
"permissions": [
"storage"
],
"host_permissions": [
"*://*/*",
"<all_urls>"
],
"content_script_matches": [
"<all_urls>",
"<all_urls>"
],
"source": "crx_download",
"crx_download_bytes": 20840,
"crx_sha256": "5e0ebde71ee60f997a9f5fc0850e6ae4a9f67006dbf662f00507f99e957c2b21",
"fetched_at": "2026-07-11"
},
"autoformat": {
"chromium_version": "147.0.7727.15",
"sizes": {
"1mb": {
"outcome": "formatted",
"trials": [
{
"outcome": "formatted",
"time_ms": 694
},
{
"outcome": "formatted",
"time_ms": 932
},
{
"outcome": "formatted",
"time_ms": 698
},
{
"outcome": "formatted",
"time_ms": 673
}
],
"median_ms": 696
},
"10mb": {
"outcome": "skipped",
"trials": [
{
"outcome": "skipped"
},
{
"outcome": "skipped"
},
{
"outcome": "skipped"
},
{
"outcome": "skipped"
}
],
"median_ms": null
},
"50mb": {
"outcome": "not_tested_after_hang"
},
"100mb": {
"outcome": "not_tested_after_hang"
}
}
}
},
{
"slug": "formatarc",
"name": "FormatArc",
"store_url": "https://chromewebstore.google.com/detail/formatarc-%E2%80%94-json-yaml-csv/jlglgicneokhmfkhcnjfhlfbhppplkjl",
"repo_url": "https://github.com/m-naoki-m/formatarc",
"open_source": true,
"store_listing": {
"version": "1.2.1",
"size": "122KiB",
"updated": "June 15, 2026",
"users": "11",
"source_url": "https://chromewebstore.google.com/detail/formatarc-%E2%80%94-json-yaml-csv/jlglgicneokhmfkhcnjfhlfbhppplkjl",
"retrieved_at": "2026-07-11"
},
"manifest_facts": {
"version": "1.2.1",
"manifest_version": 3,
"permissions": [
"contextMenus",
"activeTab",
"scripting"
],
"host_permissions": [],
"content_script_matches": [],
"source": "local_dist",
"crx_download_bytes": null,
"crx_sha256": null,
"fetched_at": "2026-07-11"
},
"autoformat": {
"outcome": "not_applicable",
"note": "ポップアップ型 (activeTab のみ)。ページ自動整形機能を持たないため自動整形上限は N/A。ローカル chrome-extension/dist/ から manifest を読む (CRX ダウンロード不要)"
}
},
{
"slug": "json-viewer-pro",
"name": "JSON Viewer Pro",
"store_url": "https://chromewebstore.google.com/detail/json-viewer-pro/eifflpmocdbdmepbjaopkkhbfmdgijcc",
"repo_url": "https://github.com/rbrahul/Awesome-JSON-Viewer",
"open_source": true,
"store_listing": {
"version": "1.0.6",
"size": "479KiB",
"updated": "April 15, 2025",
"users": "300,000",
"source_url": "https://chromewebstore.google.com/detail/json-viewer-pro/eifflpmocdbdmepbjaopkkhbfmdgijcc",
"retrieved_at": "2026-07-11"
},
"manifest_facts": {
"version": "1.0.6",
"manifest_version": 3,
"permissions": [
"contextMenus",
"storage"
],
"host_permissions": [
"*://*/*"
],
"content_script_matches": [
"http://*/*",
"https://*/*",
"ftp://*/*",
"file:///*",
"*://*/*"
],
"source": "crx_download",
"crx_download_bytes": 490250,
"crx_sha256": "0f943833d1fe4b39da820131b553cc11d957ce9ef6cea540325d8488469b2d95",
"fetched_at": "2026-07-11"
},
"autoformat": {
"chromium_version": "147.0.7727.15",
"sizes": {
"1mb": {
"outcome": "formatted",
"trials": [
{
"outcome": "formatted",
"time_ms": 1618
},
{
"outcome": "formatted",
"time_ms": 1823
},
{
"outcome": "formatted",
"time_ms": 1455
},
{
"outcome": "formatted",
"time_ms": 1530
}
],
"median_ms": 1574
},
"10mb": {
"outcome": "formatted",
"trials": [
{
"outcome": "formatted",
"time_ms": 14276
},
{
"outcome": "formatted",
"time_ms": 14365
},
{
"outcome": "formatted",
"time_ms": 14239
},
{
"outcome": "formatted",
"time_ms": 14019
}
],
"median_ms": 14258
},
"50mb": {
"outcome": "hang",
"trials": [
{
"outcome": "hang"
},
{
"outcome": "hang"
},
{
"outcome": "hang"
},
{
"outcome": "hang"
}
],
"median_ms": null
},
"100mb": {
"outcome": "not_tested_after_hang"
}
},
"run_note": "実行環境の制約で 2 run に分割 (run 1: 1mb,10mb / run 2: 50mb、いずれも warmup 1 + 本試行 4 のプロトコル遵守、サイズ昇順維持)。50mb が hang 判定のため 100mb はプロトコル通り not_tested_after_hang"
}
},
{
"slug": "json-lite",
"name": "JSON Lite",
"store_url": "https://chromewebstore.google.com/detail/json-lite/acacmjcicejlmjcheoklfdchempahoag",
"repo_url": "https://github.com/lauriro/json-lite",
"open_source": true,
"store_listing": {
"version": "24.6.3",
"size": "23.65KiB",
"updated": "June 10, 2024",
"users": "20,000",
"source_url": "https://chromewebstore.google.com/detail/json-lite/acacmjcicejlmjcheoklfdchempahoag",
"retrieved_at": "2026-07-11"
},
"manifest_facts": {
"version": "24.6.3",
"manifest_version": 3,
"permissions": [
"contextMenus",
"storage",
"activeTab",
"tabs",
"scripting"
],
"host_permissions": [
"<all_urls>"
],
"content_script_matches": [
"<all_urls>"
],
"source": "crx_download",
"crx_download_bytes": 24213,
"crx_sha256": "6aae4f7055caf6e0c8ce5b884f5dd19f7b1bbab06427fed37c6062c525fa1a99",
"fetched_at": "2026-07-11"
},
"autoformat": {
"chromium_version": "147.0.7727.15",
"sizes": {
"1mb": {
"outcome": "formatted",
"trials": [
{
"outcome": "formatted",
"time_ms": 558
},
{
"outcome": "formatted",
"time_ms": 408
},
{
"outcome": "formatted",
"time_ms": 552
},
{
"outcome": "formatted",
"time_ms": 803
}
],
"median_ms": 555
},
"10mb": {
"outcome": "formatted",
"trials": [
{
"outcome": "formatted",
"time_ms": 3782
},
{
"outcome": "formatted",
"time_ms": 1747
},
{
"outcome": "formatted",
"time_ms": 1847
},
{
"outcome": "formatted",
"time_ms": 1856
}
],
"median_ms": 1852
},
"50mb": {
"outcome": "skipped",
"trials": [
{
"outcome": "skipped"
},
{
"outcome": "skipped"
},
{
"outcome": "skipped"
},
{
"outcome": "skipped"
}
],
"median_ms": null
},
"100mb": {
"outcome": "not_tested_after_hang"
}
}
}
},
{
"slug": "json-viewer-teocci",
"name": "JSON Viewer (teocci)",
"store_url": "https://chromewebstore.google.com/detail/json-viewer/aimiinbnnkboelefkjlenlgimcabobli",
"repo_url": "https://github.com/teocci/json-viewer",
"open_source": true,
"store_listing": {
"version": "1.0.3",
"size": "104KiB",
"updated": "February 24, 2024",
"users": "100,000",
"source_url": "https://chromewebstore.google.com/detail/json-viewer/aimiinbnnkboelefkjlenlgimcabobli",
"retrieved_at": "2026-07-11"
},
"manifest_facts": {
"version": "1.0.3",
"manifest_version": 3,
"permissions": [
"clipboardWrite",
"scripting",
"activeTab",
"contextMenus",
"storage"
],
"host_permissions": [
"*://*/*",
"<all_urls>"
],
"content_script_matches": [
"<all_urls>"
],
"source": "crx_download",
"crx_download_bytes": 106620,
"crx_sha256": "7385b4ada5beb173caaa248b646e7a98a3b90d1739dbfbd67883ec4d91e17a10",
"fetched_at": "2026-07-11"
},
"autoformat": {
"chromium_version": "147.0.7727.15",
"sizes": {
"1mb": {
"outcome": "formatted",
"trials": [
{
"outcome": "formatted",
"time_ms": 2536
},
{
"outcome": "formatted",
"time_ms": 2567
},
{
"outcome": "formatted",
"time_ms": 2553
},
{
"outcome": "formatted",
"time_ms": 2569
}
],
"median_ms": 2560
},
"10mb": {
"outcome": "skipped",
"trials": [
{
"outcome": "skipped"
},
{
"outcome": "skipped"
},
{
"outcome": "skipped"
},
{
"outcome": "skipped"
}
],
"median_ms": null
},
"50mb": {
"outcome": "not_tested_after_hang"
},
"100mb": {
"outcome": "not_tested_after_hang"
}
}
}
},
{
"slug": "simple-json-viewer",
"name": "Simple JSON Viewer",
"store_url": "https://chrome.google.com/webstore/detail/simple-json-viewer/biifbpljkjdpdfioebhhpcbiehhcckop",
"repo_url": null,
"open_source": false,
"store_listing": {
"version": "1.0",
"size": "8.6KiB",
"updated": "May 10, 2020",
"users": "52",
"source_url": "https://chromewebstore.google.com/detail/simple-json-viewer/biifbpljkjdpdfioebhhpcbiehhcckop",
"retrieved_at": "2026-07-11"
},
"manifest_facts": {
"version": "1.0",
"manifest_version": 2,
"permissions": [],
"host_permissions": [],
"content_script_matches": [
"*://*/*"
],
"source": "crx_download",
"crx_download_bytes": 8803,
"crx_sha256": "d9049d64ded371707e725f88e67b363c9dce4abbbd4aa3fe1e90fc0073593a7f",
"fetched_at": "2026-07-11"
},
"autoformat": {
"chromium_version": "147.0.7727.15",
"sizes": null,
"outcome": "not_loadable",
"evidence": "Manifest V2 (manifest_version=2 を CRX 展開で実測)。Playwright Chromium 147.0.7727.15 で --load-extension 指定時に launchPersistentContext が 180 秒 timeout (残存プロセス 0 の清浄環境で 2 回再現、他 5 拡張は同条件で正常起動)。ブラウザ起動自体が完了しないため autoformat 測定不能"
}
}
]
}