DevTools Logo

Browser Benchmark

Browser Benchmark

Measure JavaScript and DOM performance

Runs in your browser

Between 50 and 20,000; higher values smooth out timer jitter.

What is measured

  • DOM operations — Create, append, measure and remove 12 elements per iteration.
  • Array methods — map / filter / reduce over 512 seeded numbers per iteration.
  • String manipulation — Join 64 generated strings and run an indexOf probe per iteration.
  • Math (xorshift32) — 128 deterministic xorshift32 rounds with an accumulating checksum.
  • JSON parse / stringify — Stringify and parse 24 nested records per iteration.

Each suite gets 5 untimed warm-up passes, then timed in chunks of 100. One operation is one complete workload iteration. Overall score is the geometric mean of ops/sec. Reference speeds are indicative constants — compare runs on the same device and browser.

Ready to run. Nothing leaves this browser tab.0%

Results

TestOps/secRelative score
DOM operations——
Array methods——
String manipulation——
Math (xorshift32)——
JSON parse / stringify——

Press “Run Benchmark” to measure this device. Results are not uploaded or saved.

Examples

Compare browsers

Run the battery in Chrome and Safari on the same machine, then compare the per-suite ops/sec and relative scores.

Smooth out jitter

Raise the iteration count to 5,000 or more for steadier timings before trusting small score differences.

Stop early

Cancel a run at any time; the suites already completed stay visible and are marked as a partial run.

About this tool

Runs five fixed workloads — DOM operations, array methods, string manipulation, math and JSON parse/stringify — for a chosen number of iterations and reports operations per second plus a geometric-mean overall score. Every suite has an untimed warm-up, is timed in small chunks so the page stays responsive, and uses a stable checksum so work cannot be optimized away. Reference speeds are published constants; scores are most meaningful when comparing runs on the same device and browser. Nothing is uploaded.

What this tool does not do

  • Processes only the inputs provided in this session without connecting to external accounts or background servers.
  • Runs entirely in the current browser tab; nothing is synced across devices or backed up to a server.

How to use this tool

  1. Keep the tab active

    Close heavy background tabs and choose your iteration count.

  2. Run the benchmark suite

    Execute DOM, array, string, math, and JSON workloads with automatic warm-up.

  3. Compare ops/sec locally

    Save the run locally to compare browsers or hardware side by side.

Use cases

Compare browsers

Run the battery in Chrome and Safari on the same machine, then compare the per-suite ops/sec and relative scores.

Smooth out jitter

Raise the iteration count to 5,000 or more for steadier timings before trusting small score differences.

Stop early

Cancel a run at any time; the suites already completed stay visible and are marked as a partial run.

Common mistakes

Mistake:Can I compare scores across different devices or browsers?

Fix:Yes, provided both runs keep the benchmark tab in the foreground with power-saving modes disabled. Comparing Chrome, Firefox, and Safari on the exact same hardware isolates JS engine and DOM differences.

Mistake:Why does backgrounding the tab affect benchmark accuracy?

Fix:Browsers throttle timers and CPU scheduling in background tabs and battery-saver modes, so keep the window active and plugged in during a run.

Frequently asked questions

What do the individual suite scores measure?

Five deterministic workloads benchmark DOM tree updates, array transformations, string manipulation, numeric math, and JSON serialization, reporting operations per second and a geometric-mean composite score.

Can I compare scores across different devices or browsers?

Yes, provided both runs keep the benchmark tab in the foreground with power-saving modes disabled. Comparing Chrome, Firefox, and Safari on the exact same hardware isolates JS engine and DOM differences.

Why does backgrounding the tab affect benchmark accuracy?

Browsers throttle timers and CPU scheduling in background tabs and battery-saver modes, so keep the window active and plugged in during a run.

Where are saved benchmark runs kept?

Saved runs stay exclusively in your browser's localStorage for local comparison; no device metrics or user-agent strings are uploaded.