Speedometer 2.0 Testing

Speedometer 2.0 Testing Recently Speedometer 2.0 has been released by WebKit team at Apple which helps developers and testers to test the web responsiveness by simulating the to do app using various frameworks. In this blog post, I am going to share my experiments with Speedometer 2.0.

What is Speedometer?

Speedometer is a simple web application which helps to benchmark the web apps’ responsiveness. It works great in non-internet-explorer browsers. To start testing, visit http://browserbench.org/Speedometer2.0/

How it works?

Under the hood, Speedometer uses ToDoMVC app. ToDoMVC team helps you to select MV framework. Speedometer simulates to-do mvc user actions like adding a task, completing tasks, and removing to-do items using DOM APIs using various JavaScript frameworks such as React, Angular JS, Backbone.js, jQuery, Inferno, Flight etc.

Speedometer 2.0 Testing
Speedometer 2.0

How to use Speedometer 2.0?

To begin testing, click on Start Test button. Once the test begins, Speedometer starts simulating the to-do mvc user actions using various mv frameworks. You can see the simulated actions in the iFrame. At the bottom, it will display the progress and the total iterations count.

Speedometer 2.0
Speedometer 2.0

Speedometer iterates the user actions 10 times and concluded the test by displaying the runs/minute with the arithmetic mean. Below is the sample test results in Chrome browser.

Speedometer 2.0 Results
Speedometer 2.0 Results
Speedometer 2.0 Detailed Results
Speedometer 2.0 Detailed Results

There will be 480 hits (including 10 iterations) which will take around 3 minutes to complete. Below is the screenshot of an iteration in JMeter of iteration 1.

Speedometer 2.0 in JMeter
Speedometer 2.0 in JMeter

In this newer version, Speedometer supports modern JavaScript frameworks and libraries, ES2015 JavaScript, Babel, and TypeScript.

Final score has been calculated using geometric mean against different framework. During the simulation, Speedometer creates, completes, and delete 100 to-do items.

Issue in IE 11

Speedometer will not work in IE 11. Once you click on Start Test button, in the Console pane, you will get below error.

Speedometer 2.0 in IE 11
Speedometer 2.0 in IE 11
Speedometer 2.0 in IE 11
Speedometer 2.0 in IE 11

If you want to use Speedometer in IE 11, you can use User Agent string of IE 11 in JMeter.

Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko

Improvements/Suggestions

Speedometer is a great utility and works faster in Chrome. But it lacks support in IE 11, it does support Edge.

Once the test is started, there is no option to abort the test; it just displays the framework and the counter.

How to access Speedometer 1.0?

To access the older version, visit http://browserbench.org/Speedometer/. Yes, i cracked it 🙂

Important Note:

Speedometer should not be used as a way to compare the performance of different JavaScript frameworks as work load differs greatly in each framework.

Your turn: Have you tried Speedometer? If yes, please let me know your experience.

Once a week we send a digest with the most popular articles.

About NaveenKumar Namachivayam

Hi there! is a passionate and experienced Performance Test Analyst based in Chicago, IL, USA with the skill sets in Manual Testing, Test Automation, Performance Testing, and Web Services. He loves to learn and experiment new trends and models in Software Testing. Please stop by at his personal blogs: NaveenKumarN.in, PerfTractor and Giftt

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.