mirror of
https://github.com/centau/vide.git
synced 2026-08-20 23:01:37 +00:00
This commit is contained in:
parent
bbe634f433
commit
31b1956b5a
6 changed files with 54 additions and 41 deletions
|
|
@ -17,10 +17,10 @@ end
|
|||
local N = 2^18 -- 262144
|
||||
|
||||
local function WRAP_BENCH(name: string, fn: () -> ())
|
||||
local _, destroy = vide.root(function()
|
||||
vide.root(function(destroy)
|
||||
BENCH(name, fn)
|
||||
end)
|
||||
destroy()
|
||||
return destroy
|
||||
end)()
|
||||
end
|
||||
|
||||
TITLE "sources"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue