|Box2D Benchmarks Show Everything Is Getting Faster|
|Written by Ian Elliot|
|Tuesday, 10 June 2014|
Joel Webber ran some benchmarks using Box2D last year and he has just repeated the task with some interesting results.
Taking the C implementation as the standard you can see how fast the others go by comparison. The two that are probably of most interest are pNaCL and asm.js running on Firefox. These represent Google and Mozilla's attempts to make browser apps work as fast as native apps.
Given that pNaCL is closest to C in the browser, its performance ratio of 1.22 isn't so surprising. But asm.js is closer than you might think at 1.51. What is also surprising is that asm.js on Chrome scores 2.54 and on IE11 4.46, but on Safari 7 it scores a terrible 127. Perhaps it is good news, that Apple recently announced speed improvements on Safari 8.
Compared to last year's results just about everything has improved with the biggest improvements in the slowest performers.
The full results are summarized below:
You can find all of the data on Joel's web site along with many interesting interpretations and comments.
What is immediately apparent from the chart however is that pNaCl and asm.js are the two to watch and the two technologies to consider if you want to create in browser apps - but notice that only asm.js works on all browsers.
To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin, or sign up for our weekly newsletter.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Tuesday, 10 June 2014 )|