iq 12 (which is noteworthy is a studio that professionally develops using Flash) ported to Flash
V8 Benchmark Suite - a test suite designed to determine the speed of JavaScript execution in various environments. The main purpose of this was to compare the execution speed of Flash vs JavaScript (calculations, but not rendering). And, as a result, they received very interesting results - over the past two years, all popular JavaScript engines have overtaken Flash in speed of calculations:
The authors of the comparison note the following points:
- AS3 did not show much performance improvement compared to the moment it appeared. The authors are confident that it has much to optimize and Alchemy proves it.
- Regulars in Flash Player are as terrible as in IE6
- The overall performance of AS3 doubled when comparing FP9 and FP10.3
- Even despite the fact that in JavaScript there is no strong typing, all browsers have already significantly outpaced Flash in speed of execution:
- Chrome 1.0+ (01/2008)
- Safari 3.1+ (03/2008)
- Opera 10.5+ (03/2010)
- Firefox 4.0+ (03/2011)
- IE 9.0+ (03/2011)
- Some browsers are so good that they leave Flash far behind:
- Chrome 10.0+ (03/2011).
- Opera 11.50 (Swordfish) Beta
- Firefox 5.0 Beta
In the
source you can see various tests, details of porting Google V8 Benchmark to ActionScript3, Flash compilers used and other interesting information:
')
Imho, optimizations of JavaScript move by leaps and bounds. The fact that it is now very easy to do it on JS just three years ago seemed like an unattainable dream. Such an outcome is the results of strong competition, and I am sure that vendors will not stop there. Soon you will see very powerful applications and games. And not only on the desktop, because JavaScript optimization for mobile phones is just around the corner.