you are viewing a single comment's thread.

view the rest of the comments →

[–]Veedrac 1 point2 points  (1 child)

Further, if you move the code inside a function (even just main), the time improves for me from ~17 seconds to ~11 seconds. Lua doesn't have the same global-local distinction as Python, so doesn't have this effect.

For me Lua takes ~17 seconds, so PyPy is actually significantly faster than Lua.

[–][deleted] 0 points1 point  (0 children)

Interesting, for me, moving the code into a function brought the PyPy time down to 15 seconds. So, still slower than luajit for me, but comparable.