Wasn't sure where to put this, but I thought it'd be interesting to share this. I decided to see how different Lua implementations stack up against each other, so I made this simple loop. It counts how many times the loop can be run in 1 second. Code: i=0 now=os.clock() while os.clock() < now + 1 do i = i + 1 end print(i) Results: TPT (The Powder Toy): 10,923,792 GMod (Chromium branch): 11,922,030 HexChat (IRC client, x64, Windows): 20,557,857 Browser Lua implementation (ran in latest Google Chrome): 252,807 BeamNG: 18,107,407 What this tells me is that Beam's Lua implementation has some pretty good optimization done to it. EDIT: Updated the GMod score due to finding it was not being executed in the same manner as the others, which deflated its score. It is more accurate now. It still does not change the fact that BeamNG's lua is executing at a good speed.
Yeah I figured that had to be the case. There's no way it'd be running that fast otherwise. HexChat uses it too and performance is very similar. The interesting part though is how GMod runs a bit slower despite using LuaJIT. It is x86 and not x64 though,and I've seen cases where Lua runs slower on x86 than x64.