Hacker News new | ask | show | jobs
by heijmans 4622 days ago
This is very impressive. The code is very readable, even the asm.js based code (which is probably written by hand). You can find the CPU code in js/worker/cpu.

On Chrome I get about 30 MIPS while running scummvm. On Firefox I get about 6 MIPS on the standard core and about 40 MIPS on the asm.js core.

I must say that I am impressed by Chrome performance on the standard core. However, sometime Chrome drops to about 6 MIPS for no discernible reason.

For people like me, who didn't know what OpenRISC is: http://en.wikipedia.org/wiki/OpenRISC

1 comments

Yes, the asm.js code is written by hand. Took around one day. What happened with Firefox I don't know. Firefox 22 was fast (above 30 MIPS) and then it dropped. No chance to find the problem. Chrome sometimes thinks that integers are no longer appropriate for some values and deoptimizes the code. But it seems that the asm.js core is stable and fast for Chrome as well.