Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Get 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.



Not 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


That's outdated, thanks, I'll fix it now.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: