Forgot to say, without inlining sql.js is 20x slower than native code, which is worrying.
Do you have comparable benchmarks that work in the shell?
To make these run in the shell, just remove the first 30 lines, up to // The compiled code and remove the last 3 lines of HTML that close the script tag etc. That leaves just the compiled code.
You need to log in before you can comment on or make changes to this bug.