bench doesn't need to be a class

This commit is contained in:
2025-06-29 18:12:47 -04:00
parent b60e6a3934
commit 8b91fc9c2f
2 changed files with 2 additions and 5 deletions

View File

@ -62,7 +62,7 @@ end
return function(opts)
M.config_path = debug.getinfo(2, "S").source:sub(2)
logger.pipe = logger:setup()
bench:setup()
bench.setup()
lazy.setup()
--- make comparison for table.sort

View File

@ -7,11 +7,8 @@
local bench = {}
local b
function bench:setup()
function bench.setup()
local o = {}
self = {}
self.__index = self
setmetatable(o, self)
o.perf = {}
o.inited = true