Hacker News new | past | comments | ask | show | jobs | submit login

The benchmark[1] includes scimark, which measures FLOPS. I get 0.62 MFLOPS. In scimark running in the JVM[2], I get 353.4 MFLOPS (units explained here[3]). So in conclusion, the Oracle JVM on x86-32 is 570 x faster than lua.vm.js on V8 on same platform.

[1]: http://kripken.github.io/lua.vm.js/lua.vm.js.html

[2]: http://math.nist.gov/scimark2/run.html

[3]: http://math.nist.gov/scimark2/faq.html




I assume the JS code generated here is using heavily the asm.js subset, so it can be run faster on asm.js-capable browsers.

Therefore V8 is not the ideal platform for benchmarking this implementation. You could try with a nightly Firefox.

EDIT: Indeed, 8 MFLOPS on FF Aurora, 1.2 MFLOPS in Chrome Canary.


What do you get in the JVM?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: