3 ms·
But now you're comparing unoptimized javascript to java, instead of asm.js.
by janjongboom 13y ago
But now you're comparing unoptimized javascript to java, instead of asm.js.
- icebraining 13y agoAnd he's comparing JavaScript with the JVM, not Dalvik. And on a laptop.
- justinsb 13y agoAh - fair point. How can I repeat the asm.js results on my laptop?
- azakai 13y agoGet the benchmark code, get emscripten, and compile them, emcc -O2 nsieve.cpp for example. Yes, I also had to increase the runtime, they were quite short on a laptop - they were meant for a phone I think.
- nxn 13y agoNot sure if this is relevant these days, but the Emscripten FAQ mentions the need to use "-s ASM_JS=1" as an argument to emcc in order for it to actually output asm.js style code. See "Q. How fast will the compiled code be?" from: https://github.com/kripken/emscripten/wiki/FAQ https://github.com/kripken/emscripten/wiki/FAQ
- azakai 13y agoThat's outdated, thanks, I'll fix it now.