Replies: 1 comment 3 replies
-
With those times you're probably comparing |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`require 'os'
local function x()
local j = 0
for i=2.0, 1000000000.0 do
j = i
end
return j
end
x()
local t1 = os.clock()
local y = x();
local t2 = os.clock()
print(y)
--assert(y == 1000000000.0)
print("time taken ", t2-t1);`
Results:
Nelua 4.18
Luajit 0.61
If i change the numbers to integer in the x function Nelua improves getting 1.65 whereas luajit is still about 0.61
Why is nelua slower?
Beta Was this translation helpful? Give feedback.
All reactions