J
Jorge
Hi,
I've done a small benchmark in order to see how do the different
implementations handle the extra work required by this approach:
http://jorgechamorro.com/cljs/096/
Browser Math math (Mhz) Proto Math (MHz) Prop.
Opera 10.5 20.70 0.64 32.3x
FF3.6 23.46 1.04 22.5x
Webkit r54921 13.26 2.61 5,0x
Chrome 5.0.307.9 11.51 10.14 1,1x
It varies from very very bad 32.3x slower, to the nearly as fast as
Math.method 1.1x. I think that Chrome proves that there's room for
optimization, and that, if this were ever done natively, the
difference could easily be nil.
I've done a small benchmark in order to see how do the different
implementations handle the extra work required by this approach:
http://jorgechamorro.com/cljs/096/
Browser Math math (Mhz) Proto Math (MHz) Prop.
Opera 10.5 20.70 0.64 32.3x
FF3.6 23.46 1.04 22.5x
Webkit r54921 13.26 2.61 5,0x
Chrome 5.0.307.9 11.51 10.14 1,1x
It varies from very very bad 32.3x slower, to the nearly as fast as
Math.method 1.1x. I think that Chrome proves that there's room for
optimization, and that, if this were ever done natively, the
difference could easily be nil.