Aller au contenu
Skillpedia
Tests25k · #10061

loadline

Ce qu’il fait

Cette compétence montre à votre IA comment lancer les benchmarks de chargement de pages LoadLine avec l'outil Crossbench. Elle s'adresse aux ingénieurs qui doivent mesurer la vitesse de Chrome ou recueillir des traces de performance.

Quand l’utiliser

  • ✓Quand vous voulez mesurer la vitesse de chargement des pages web dans Chrome sur un téléphone ou une tablette.
  • ✓Quand vous devez vérifier si une modification de code accélère ou ralentit le chargement des pages.
  • ✓Quand vous voulez recueillir une trace Perfetto d'un chargement de page pour l'analyser.

Lien du skill

https://github.com/chromium/chromium/blob/main/agents/skills/loadline/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/chromium/chromium/blob/main/agents/skills/loadline/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Pouvez-vous lancer le benchmark LoadLine pour téléphone sur mon Chrome Android et me dire ce que donnent les temps de chargement ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'IA choisit une variante de LoadLine, un navigateur et un ensemble de pages web, puis lance le script Crossbench avec un nombre de répétitions. Elle restitue ensuite les résultats ou les traces.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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_product
  • cnn_article
  • wikipedia_article
  • globo_homepage
  • google_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

  1. Build Chrome for Android with android_channel="canary" gn arg.
  2. 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)
  3. Install the custom built Chrome: adb install out/$OUT_DIR/apks/Chrome.apk
  4. 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

Questions fréquentes

Qu'est-ce que LoadLine ?

LoadLine est un ensemble de benchmarks qui charge de vraies pages web dans un navigateur et mesure le temps nécessaire.

Qu'est-ce que Crossbench ?

Crossbench est l'outil qui exécute LoadLine et d'autres benchmarks de navigateurs. La compétence utilise son script en ligne de commande.

Puis-je l'exécuter sur le navigateur d'un ordinateur classique ?

Oui, la compétence peut aussi l'exécuter avec une version locale de Chrome ou le Chrome du système, et pas seulement sur Android.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
25k
Position au classement
#10061
Licence
BSD-3-Clause
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires