[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: asm.js
- From: Coda Highland <chighland@...>
- Date: Sun, 24 Feb 2013 01:14:36 -0800
On Sun, Feb 24, 2013 at 12:35 AM, Peter Kuemmel <email@example.com> wrote:
> "Preliminary benchmarks of C programs compiled to asm.js are usually within
> a factor of 2 slowdown over native compilation with GCC."
> I wonder what would be possible with something like asm.lua.
Well, LuaJIT is a thing, and if you tune your code to the appropriate
subset of LuaJIT functionality, you get performance pretty competitive
with native compilation, if not potentially faster.