---
title: "Speedometer 2.1"
description: "Speedometer 2.1 is a minor update that fixes the benchmark harness so it no longer measures artificial timer throttling."
url: "https://swe.quest/articles/speedometer-2-1-0754b057a0ec4b71"
canonical: "https://webkit.org/blog/13083/speedometer-2-1/"
source: "WebKit"
published: "2022-08-02"
difficulty: "medium"
kind: "Release"
reading_minutes: 1
tags: ["browsers","performance","javascript"]
---

# Speedometer 2.1

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2022-08-02, 1 min read, Release. Original: [https://webkit.org/blog/13083/speedometer-2-1/](https://webkit.org/blog/13083/speedometer-2-1/)

## Summary

Speedometer 2.1 is a minor update that fixes the benchmark harness so it no longer measures artificial timer throttling. The harness used nested setTimeout calls to capture deferred asynchronous work, but the deep nesting it built up triggered the spec-mandated 4ms throttle between callbacks, inflating measured work time. Inserting window.requestAnimationFrame before each test run resets the nesting level and isolates subtests better. Scores improved 3-5% in stable Safari, Chrome and Firefox.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- JavaScript event loop ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- setTimeout and requestAnimationFrame

## Keywords

Speedometer, WebKit, setTimeout, requestAnimationFrame, Safari

## Related posts

- [Speedometer 3.0: The Best Way Yet to Measure Browser Performance](https://swe.quest/articles/speedometer-3-0-the-best-way-yet-to-measure-browser-performance-2c6a7e3e4a16f5e5.md): WebKit · 2024-03-11 · Medium · 7 min read · Browsers, Performance engineering, Web performance, Frontend
  Speedometer 3.0, jointly governed by Blink, Gecko and WebKit developers, changes how browser responsiveness is measured.
- [Introducing JetStream 2.1](https://swe.quest/articles/introducing-jetstream-2-1-a7fcb1237e16a4d0.md): WebKit · 2022-09-12 · Easy · 1 min read · Performance engineering, JavaScript, Browsers
  JetStream 2.1 keeps the same 64 JavaScript subtests as JetStream 2 but changes the benchmark driver to pre-fetch network resources into Blobs and load subtests from blob URLs.
- [Optimizing WebKit & Safari for Speedometer 3.0](https://swe.quest/articles/optimizing-webkit-safari-for-speedometer-3-0-a9a8d1c62cb906f4.md): WebKit · 2024-04-10 · Hard · 11 min read · Browsers, Web performance, Runtimes & VMs, Memory management, Performance engineering
  WebKit's Speedometer 3.0 work spans JavaScriptCore, DOM, style, layout, rendering and Safari itself, with measured gains for each change.
- [MotionMark 1.2](https://swe.quest/articles/motionmark-1-2-d808e41277976708.md): WebKit · 2021-06-07 · Medium · 2 min read · Browsers, Performance engineering, Web performance
  MotionMark 1.2 is a small reliability-focused update to the browser graphics benchmark.
- [Announcing MotionMark 1.3](https://swe.quest/articles/announcing-motionmark-1-3-9ce06baaebc3841b.md): WebKit · 2024-01-10 · Medium · 2 min read · Browsers, Performance engineering, Web performance
  MotionMark 1.3, Apple's browser graphics benchmark, now detects the browser's requestAnimationFrame frequency and uses it as the target frame rate instead of assuming 60fps.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
