3 ms·
How would you say how V8 Turbofan that uses asm.js(outcome predicted either to be 2x-6x faster than today's V8) compare to the DartVM?
by Pharohbot 12y ago
How would you say how V8 Turbofan that uses asm.js(outcome predicted either to be 2x-6x faster than today's V8) compare to the DartVM?
- mraleph 12y agoWhat do you want to compare it on? "Using asm.js" is not some magic that just makes all JavaScript faster. For example all those benchmarks from http://dartlang.org/performance http://dartlang.org/performance are written in a normal JavaScript not in what is known as "asm.js". Now TurboFan does not even really "use asm.js". It respects "use asm" directive to decide which functions to optimize and enables a few optimizations on such functions. Other than that it's a completely generic JavaScript JIT compiler, which does not even performs a complete asm.js module type verification pass (something that OdinMonkey does). Furthermore if you try enabling TurboFan on a non-asm.js code then you'll discover that right now TurobFan is lacking infrastructure for adaptive optimizations which is an absolute requirement for compiling normal JavaScript (as opposed to asm.js compliant code which is limted to arithmetic, typed arrays manipulation and essentially statically typed) into efficient machine code. It will run this normal JavaScript code - but it will not necessarily run it fast. That said I am looking forward for TF with those adaptive optimizations implemented. It's a bold project with a lot of promised value for V8. Though I would not expect anything as impressive as "6x over Crankshaft across the board".