3 ms·
Interestingly, asm.js has an advantage in Firefox and Chrome for me, but not in Safari.
by TazeTSchnitzel 11y ago
Interestingly, asm.js has an advantage in Firefox and Chrome for me, but not in Safari.
- cjbprime 11y agoSafari doesn't implement an asm.js backend, presumably?
- brandonbloom 11y agoOr, potentially, does an equally good job optimizing the code with or without the asm.js hint.
- TazeTSchnitzel 11y agoNor does Chrome, but I think Chrome takes the `"use asm";` as a hint to use certain optimisations.
- brendandahl 11y agoChrome should enable turbo fan with the "use asm"; set. Though the only confirmation of this is saying it's tested in beta. https://code.google.com/p/v8/issues/detail?id=2599#c77 https://code.google.com/p/v8/issues/detail?id=2599#c77
- azakai 11y agoIt's in release Chrome currently.
- azakai 11y agoThat's correct, all JS engines except for Safari's detect "use asm". More specifically, Firefox and Edge detect "use asm" and run an asm.js type-checker, while Chrome detects "use asm" and runs TurboFan.
- trymas 11y ago+1 I played 4 times on Safari with varying settings and it always converged into 50%/50% play ending in a draw. Whereas in Firefox or Chrome sometimes even after 10-15 turns, the asm.js version had 98-100% chance of winning.