Dev

Google rolls out new JavaScript benchmarks for the modern and mobile web

Image Credit: top image courtesy of maga, Shutterstock

Google has just launched Octane, a new suite of benchmarks for JavaScript running in thoroughly modern, high-performing web browsers.

The tools are intended to test the performance of JavaScript found in large web applications. These JavaScript-based, highly complex web apps range from browser-loaded PDFs to web-based games, and Google says these apps are putting more weight on JavaScript than any of their predecessors.

“Most of the existing JavaScript benchmarks run artificial tests that were created on an ad-hoc basis to stress a specific JavaScript feature,” writes Octane product manager Stefano Cazzulani today on the company blog.

“Octane breaks with this tradition and extends the former V8 Benchmark Suite with five new benchmarks created from full, unaltered, well-known web applications and libraries.”

Previously existing JavaScript benchmarks, such as Kraken and Sunspider, are what Google now identifies as “micro-benchmarks,” created in and for another time when JavaScript wasn’t a cornerstone of major web applications. Hence, they don’t measure the JavaScript engine’s performance under current web conditions. And as the V8 team points out, you can’t improve what you can’t measure.

With Octane, the various tests run and produce numeric scores on everything from regular expressions to 3D emulation to code redundancies and compilation to fast object creation. Octane measures the time a test takes to complete and then assigns a score that is inversely proportional to the run time.

“A high score in the new benchmarks directly translates to better and smoother performance in similar web applications,” Cazzulani continues.

Plus, he notes, the new suite has a lovely, responsively designed UI that translates well to mobile devices, so you can see how JavaScript will perform in, say, Chrome for Android running on your new Nexus 7 tablet.

Here’s what it looks like:

[vb_gallery id=515062]

You can currently check out the source and report bugs or file issues to help the project along.

top image courtesy of maga, Shutterstock


Mobile developer or publisher? VentureBeat is studying mobile marketing automation. Fill out our 5-minute survey, and we'll share the data with you.