I think the only way to get useful data is to benchmark your own code on 
all browsers.

Firefox uses an ahead-of-time compile step and prints a status message, 
other browsers handle the presence of "use asm" differently or ignore it 
completely, which doesn't mean that those other approaches are inferior to 
FF. There is a new Turbofan JS engine component in Chrome which apparently 
handles asm.js code especially well 
(http://blog.chromium.org/2015/07/revving-up-javascript-performance-with.html), 
but it doesn't look especially fast yet on arewefastyet: 
http://arewefastyet.com/#machine=28&view=breakdown&suite=asmjs-apps

It *is* really important to benchmark your own code on all browsers. For 
instance if you're using WebGL, then the pure asm.js execution speed is 
usually less important than the overhead of the browser's WebGL 
implementation.

Cheers,
-Floh.



Am Dienstag, 11. August 2015 14:33:23 UTC+2 schrieb Laurent Pugin:
>
> Hi,
>
> I am having troubles having asm compiled / running in Chrome. My C++ code 
> is compiled with the following emscripten options:
>
> -O3 --memory-init-file 0 \
> -s ASM_JS=1 \
> -s TOTAL_MEMORY=128*1024*1024 \
> -s TOTAL_STACK=64*1024*1024"
>
> In FireFox and IE Edge, I can see in the console the message the asm.js is 
> successfully compiled:
>
> 14:04:46.658 Successfully compiled asm.js code (total compilation time 
> 605ms; unable to cache asm.js in synchronous scripts; try loading asm.js 
> via <script async> or createElement('script'))
>
> However, nothing is shown in Chrome and I think it does not use asm since 
> it is then much slower. I have tested on Chrome Version 44.0.2403.130 
> (64-bit) on Mac and also on Windows 10. Any idea how to double check if 
> Chrome does compile and run as asm? Or what is the issue if it does not? 
> Any flag to switch on as for IE Edge? 
>
> Thanks in advance,
> Laurent
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to