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.
Table of Contents
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.
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 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.
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.
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.
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.