News for hackers. Stuff that matters.
Re:Asm.js: a strict subset of js for compilers – working draft by azakai on Friday February 15, 2013 @04:18PM (#5228737)
> I would really, really like to see some benchmarks comparing NaCL vs asm.js, and I won't buy this as a viable compilation target until there's data to back up these (dubious) claims.

The current numbers are that asm.js is around 2x slower than native code. I didn't compare to NaCl (which would be apples-to-oranges since it is non-portable) nor PNaCl (which I am not sure is ready yet for benchmarking? Please correct me if not).

We expect to improve on the 2x later this year, this is just the first iteration. I do think 2x is quite promising already though - it's in the range of Java and C# (on a fast VM for them).

I'll be putting up some slides with more specific numbers tomorrow after I finish giving a talk on it.

Re:Asm.js: a strict subset of js for compilers – working draft by azakai on Saturday February 16, 2013 @06:06AM (#5231149)