Added a lua benchmark for performance comparisons
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
for counter = 1, 10000 do
|
||||
local result = ""
|
||||
|
||||
if counter % 3 == 0 then
|
||||
result = result .. "fizz"
|
||||
end
|
||||
|
||||
if counter % 5 == 0 then
|
||||
result = result .. "buzz"
|
||||
end
|
||||
|
||||
if result ~= "" then
|
||||
print(result)
|
||||
else
|
||||
print(counter)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user