loadline
できること
このスキルは、Crossbenchツールを使ったLoadLineのページ読み込みのベンチマークを、AIが実行する方法を示します。Chromeの速度を測ったり、Perfettoのトレースを集めたりするエンジニア向けです。
使う場面
- ✓スマートフォンやタブレットのChromeで、Webページがどれくらい速く読み込まれるかを測りたいとき。
- ✓コードの変更でページの読み込みが速くなったか遅くなったかを確かめたいとき。
- ✓分析のために、ページ読み込みのPerfettoトレースを集めたいとき。
スキルのリンク
https://github.com/chromium/chromium/blob/main/agents/skills/loadline/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“AndroidのChromeで、LoadLineのフォンのベンチマークを実行して、ページの読み込み時間がどう見えるかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、LoadLineのバリアント、ブラウザ、Webページのストーリーの一式を選び、繰り返し回数を指定してCrossbenchのスクリプトを実行します。その後、結果またはトレースを報告します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
LoadLine Benchmark
This skill guides the usage of LoadLine benchmarks to measure browser page loading performance by simulating real-world user journeys (loading a web page).
Quick Start
Read third_party/crossbench/config/benchmark/loadline2/README.md for basic
info on the LoadLine benchmark.
The entry point for all LoadLine benchmarks is the Crossbench script:
third_party/crossbench/cb.py
Common Command Pattern
third_party/crossbench/cb.py <variant> --browser=<browser> --stories=<stories> --repetitions=<N>
Benchmark Variants
| Variant | Description |
|---|---|
loadline2-phone |
The latest LoadLine 2 benchmark optimized for mobile phones. |
loadline2-tablet |
LoadLine 2 benchmark optimized for tablets. |
loadline-phone |
Legacy LoadLine 1 benchmark for phones. |
loadline-tablet |
Legacy LoadLine 1 benchmark for tablets. |
*-debug |
Appends more tracing categories for easier debugging. |
Target Browsers (--browser)
- Android (Chrome): Use
--browser=adb:chrome(if one device) or--browser=$SERIAL:chrome. - Local Build: Use the path to the output directory, e.g.,
--browser=out/Release/chrome. - System Chrome: Use
--browser=chrome-stable,chrome-canary, etc.
Stories (--stories)
Default stories for LoadLine 2:
amazon_productcnn_articlewikipedia_articleglobo_homepagegoogle_search_result
Skip --stories flag to run everything or provide a comma-separated list for
specific stories.
Analyzing Results
LoadLine outputs two kinds of numbers: scores and breakdown.
Scores are in runs-per-minute, so higher is better. The main metric is called TOTAL_SCORE, this is the most stable and representative number.
Breakdown values are in milliseconds, so lower is better. Can be useful for analyzing which loading stage was affected in particular.
Statistical Significance
- Noise: Benchmark results are inherently noisy. A single repetition should only be used for smoke-testing.
- Reliability: To confidently determine changes of 1% or higher, run the benchmark with at least 50 repetitions.
- Interpretation: Changes below 1% are typically not considered statistically significant, even with 50 repetitions.
Identifying Tested Version
You can find the exact version of Chrome being tested in the benchmark logs by
looking for the 🏷️ STARTING BROWSER Version: line:
🏷️ STARTING BROWSER Version: 138.0.7204.168 stable
Common Workflows
Full Basic Run
Run the full benchmark on a connected Android device:
third_party/crossbench/cb.py loadline2-phone --browser=adb:chrome
Test a feature flag
See if a feature flag affects page loading performance:
third_party/crossbench/cb.py loadline2-phone --browser-config=feature_flag.hjson
where feature_flag.hjson looks like this:
{
flags: {
"experiment": {
"enabled": "--enable-features=YourFeature",
"disabled": "--disable-features=YourFeature",
},
},
browsers: {
"chrome": {
browser: "chrome",
driver: "adb",
flags: [ "experiment" ],
},
},
}
Compare past versions of Chrome
Check if clank/bin/install_chrome.py exists. If not (chromium-only checkouts),
see the next section for building Chromium locally.
Use clank/bin/install_chrome.py to install past versions on the connected
device. E.g.
clank/bin/install_chrome.py --channel dev --milestone 146 --signed
will install M146 with "Dev" channel branding. You can use multiple brandings to compare versions on the same device. E.g. install Canary:
clank/bin/install_chrome.py --channel canary --milestone 147 --signed
And then run LoadLine with two browsers:
third_party/crossbench/cb.py loadline2-phone --browser=adb:chrome-dev --browser=adb:chrome-canary
This will compare M146 and M147 on the same device.
Custom-built Chrome
- Build Chrome for Android with
android_channel="canary"gn arg. - Uninstall existing Chrome Canary from the device:
adb shell pm uninstall com.chrome.canary(this command fails if it's not installed; this is fine and can be ignored) - Install the custom built Chrome:
adb install out/$OUT_DIR/apks/Chrome.apk - Run LoadLine on chrome-canary:
third_party/crossbench/cb.py loadline2-phone --browser=adb:chrome-canary
Short run
Before running a full run on a custom-built Chrome, first try with a single re
よくある質問
LoadLineとは何ですか?
実際のWebページをブラウザで読み込み、その時間を測るベンチマークの一式です。
Crossbenchとは何ですか?
LoadLineやその他のブラウザのベンチマークを実行するツールです。このスキルはそのコマンドラインのスクリプトを使います。
普通のパソコンのブラウザでも実行できますか?
はい。Androidだけでなく、ローカルのChromeのビルドやシステムのChromeでも実行できます。
詳細
作者による元の説明
Running and analyzing LoadLine 1 and 2 benchmarks on Android using Crossbench. Use when you need to measure page loading performance, evaluate performance-related changes in Chrome, or collect Perfetto traces with realistic Chrome workload.
repo: chromium/chromium
人気
- GitHubのスター
- 25k
- ランキング
- #10061
- ライセンス
- BSD-3-Clause
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
fuzzing
25kエージェントが、多くのランダムな入力をコードに与えてクラッシュやバグを見つけるファジングテストを、C++のコードで書けるよう支援します。
gn-deps-debugging
25kエージェントが、GNのビルドファイルにある依存関係の不足や誤りによるビルドエラーを、広すぎる不要な依存関係を追加せずに直せるよう支援します。
java-memory-leaks
25kエージェントが、LeakCanaryのリークレポートを読んで、Androidアプリの Javaのメモリリークを見つけ、修正できるよう支援します。
jni-type-conversion
25kエージェントが、Androidのコードで、手作業によるJavaからC++への変換のコードを、より簡単な@JniTypeアノテーションに置き換えられるよう支援します。
似ているスキル
test-driven-development
311k機能や修正を作る前に、まず失敗するテストを書き、それが失敗するのを確認してから、合格させる最小のコードを書くようエージェントに教えます。
verification-before-completion
311kタスク、修正、ビルドが完了した、または合格したと主張する前に、実際のチェックを実行し、その出力を読むようエージェントに教えます。
migrate-to-shoehorn
310kテストファイル内の危険な型キャストを、shoehornライブラリに置き換え、テストが部分的なデータを使いつつ型チェックを通るようにします。