Tools to benchmark JavaScript

If you are a JavaScript programmer, web enthusiast or just curious, you may want to test your browser JavaScript performance. Every test uses different approaches and tells you a different part of the story. If you are really interested in understanding which one would be good for your intentions I would strongly recommend to go through all of them and check their pages to read all the details.

This is the most up-to-date list I could compile, to ease your hunger of benchmarking:

SunSpider

Apple’s Webkit team is behind this popular benchmark. It provides you with a link to your results once the test is completed.

Octane

New version of the old V8 Javascript Engine. It has been developed by Google and is a part of the Chrome browser.

Dromaeo

Dromaeo has been created by John Resig (JavaScript Tool Developer at Mozilla). It’s actually a collection of a number of benchmarks which are broken up into two main categories – JavaScript and DOM. It reiterates the calculations at least five times to grant more accurate results.

Acid3

Acid3 is not a real benchmark. It’s a compliance test created by the Web Standards Project to understand if a browser is capable of properly display (render) certain instructions.

The maximum score is 100 and anything lower than this will basically says that your browser has failed the test.

Kraken

Mozilla Kraken Java Benchmark uses predefined test cases and run them in your browser giving the results in milliseconds. Lowest results are better.

RoboHornet

It’s another Google creation, still in alpha state, it aims at creating a super complete set of real life situations to replicate in the tests. It asks collaboration from the community to improve its standards and sets.

If your interested at testing your own code speed, I would suggest two different websites:

Jsperf
BenchmarkJS

but this is already interesting for another article…

Leave a Reply

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