Data update

This commit is contained in:
Ingy döt Net 2025-06-11 20:16:52 -04:00
parent 72eb4943cb
commit 4d5544505c
2347 changed files with 62432 additions and 16731 deletions

View file

@ -1,12 +1,14 @@
function Test_Function()
for i = 1, 10000000 do
local s = math.log( i )
s = math.sqrt( s )
end
function bench(Function, ...)
local t = os.time()
local clock1 = os.clock()
Function(...)
local c = os.clock()-clock
return os.time()-t, c
end
t1 = os.clock()
Test_Function()
t2 = os.clock()
function sleep(n)
local start = os.time()
repeat until os.time()-start==n
end
print( os.difftime( t2, t1 ) )
print( bench(sleep, 2) )