performance test again

This commit is contained in:
MihailRis
2024-12-17 02:05:52 +03:00
parent 7ca91020e3
commit c5049d0e24
2 changed files with 15 additions and 2 deletions
+5 -2
View File
@@ -8,8 +8,11 @@ assert(player.get_name(pid) == "Xerxes")
test.sleep_until(function() return world.count_chunks() >= 9 end, 1000)
print(world.count_chunks())
timeit(10000000, block.get, 0, 0, 0)
timeit(10000000, core.blank, 0, 0, 0)
for i=1,10 do
print("--------------------")
timeit(10000000, block.get_fast, 0, 0, 0)
timeit(10000000, block.get, 0, 0, 0)
end
block.destruct(0, 0, 0, pid)
assert(block.get(0, 0, 0) == 0)