loadline
Skill này làm gì
Skill này chỉ cho AI của bạn cách chạy các benchmark tải trang LoadLine bằng công cụ Crossbench. Skill dành cho kỹ sư cần đo tốc độ Chrome hoặc thu thập vết hiệu năng.
Khi nào nên dùng
- ✓Khi bạn muốn đo tốc độ tải trang web trong Chrome trên điện thoại hoặc máy tính bảng.
- ✓Khi bạn cần kiểm tra xem một thay đổi mã làm tải trang nhanh hơn hay chậm hơn.
- ✓Khi bạn muốn thu thập vết Perfetto của một lần tải trang để phân tích.
Liên kết skill
https://github.com/chromium/chromium/blob/main/agents/skills/loadline/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể chạy benchmark điện thoại LoadLine trên Chrome Android của tôi và cho biết thời gian tải trang trông như thế nào không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI chọn một biến thể LoadLine, một trình duyệt và một tập các câu chuyện trang web, rồi chạy script Crossbench với số lần lặp lại. Sau đó nó báo cáo kết quả hoặc vết.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
LoadLine là gì?
LoadLine là một bộ benchmark tải các trang web thật trong trình duyệt và đo xem mất bao lâu.
Crossbench là gì?
Crossbench là công cụ chạy LoadLine và các benchmark trình duyệt khác. Skill dùng script dòng lệnh của nó.
Tôi có thể chạy trên trình duyệt máy tính thông thường không?
Có. Skill cũng có thể chạy với bản build Chrome cục bộ hoặc Chrome hệ thống, không chỉ trên Android.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10061
- Giấy phép
- BSD-3-Clause
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
fuzzing
25kGiúp agent của bạn viết các bài kiểm thử fuzz, đưa nhiều đầu vào ngẫu nhiên vào mã để tìm lỗi crash và bug trong mã C++.
gn-deps-debugging
25kGiúp agent của bạn sửa lỗi build do phụ thuộc thiếu hoặc sai trong file build GN, mà không thêm các phụ thuộc rộng và không cần thiết.
java-memory-leaks
25kGiúp agent của bạn tìm và sửa rò rỉ bộ nhớ Java trong ứng dụng Android bằng cách đọc báo cáo rò rỉ từ LeakCanary.
jni-type-conversion
25kGiúp agent của bạn thay thế mã chuyển đổi Java sang C++ thủ công bằng các chú thích @JniType đơn giản hơn trong mã Android.
Skill tương tự
test-driven-development
311kDạy agent của bạn viết kiểm thử thất bại trước, xem nó thất bại, rồi viết đoạn mã ngắn nhất để vượt qua trước khi làm bất kỳ tính năng hay bản sửa nào.
verification-before-completion
311kDạy agent của bạn chạy kiểm tra thực tế và đọc kết quả đầu ra trước khi khẳng định một việc, bản sửa hoặc bản build đã hoàn thành hay vượt qua.
migrate-to-shoehorn
310kThay các ép kiểu rủi ro trong tệp kiểm thử bằng thư viện shoehorn, để các bài kiểm thử dùng dữ liệu một phần vẫn qua được kiểm tra kiểu.