| It would be nice to see the numbers, in addition to the graph. I did a straight port of C to lua, and ran it with luajit. The C code ran in 49.901s. The luajit code ran in 14m16.547s. C code was compiled with -02 -std=c11 -lm (version 4.8.1, mingw). luajit.exe was 2.0.3, static build, using VS2012 x64 |
"The luajit code ran in 856.547s."
The graph is log-log which can be a bit tricky to read but that puts it in the same ballpark as Ruby and PHP (assuming the same factor of difference between the two, after scaling your C vs luajit results to match the given C value of ~40s, luajit becomes 687s.)