A Simple Dōjō / SVG Benchmark
Jul 31st, 2007 by rb
I created a simple Dōjō / SVG benchmark to test how many rectangles could be drawn and moved in a second, and if the numbers are high enough for real time graphics.
You can find the benchmark here
My private results so far (but please beware, the usual problems with microbenchmarks apply):
Opera 9.21 feels as the fastest, because it updates the elements during operation, but gives only ~180 Creations per Second and ~530 Movements per Second.
Firefox 2.0.0.6 is next, with ~370 CPS and ~1700 MPS, but it feels rather sluggish, because it is neither as fast as the next candidate, nor does it update the view on the fly.
Safari 3.0.2 beta actually is the fastest one in my little test, although it also does not update during runtime: ~850 CPS and ~2800 MPS.
All numbers were generated on a MacBook Pro 2 GHz using Dojo 0.4.3.
So, what do these numbers tell now ? Regarding the three browsers not very much, but I came to the conclusion complex, high performance 2D graphics should be done with something else.
Update
Safari 3.0.3 beta seems to be, in this respect, equally fast.
Update 2
Safari 3.0.4 on Leopard: ~1600 CPS, ~4900 MPS.
Firefox 2.0.0.8 on Leopard: ~800 CPS, ~3500 MPS.
Update 3
Opera 9.51 on Leopard: ~1400 CPS, ~4300 MPS.
Update the results for Opera 9.51 and Firefox 3! Should be interesting…
Updated for Opera 9.51. Firefox 3 support is unfortunately broken.