|
On 19/12/2012 22.57, Dirk Laurie wrote:
I replaced the line sum = sum + j + v by sum = tostring(v):upper() and the time jumps to about 15 seconds. On LuaJIT it jumped from 0.3 to to 136 seconds. I could have got myself a mug of coffee. Bye-bye to the conventional wisdom that LuaJIT is faster than PUC-Rio!
I see your point, but probably that's not a very significant example: I think you're actually timing allocations and string hashing.
-- Enrico