bench doesn't need to be a class
This commit is contained in:
@ -62,7 +62,7 @@ end
|
|||||||
return function(opts)
|
return function(opts)
|
||||||
M.config_path = debug.getinfo(2, "S").source:sub(2)
|
M.config_path = debug.getinfo(2, "S").source:sub(2)
|
||||||
logger.pipe = logger:setup()
|
logger.pipe = logger:setup()
|
||||||
bench:setup()
|
bench.setup()
|
||||||
lazy.setup()
|
lazy.setup()
|
||||||
|
|
||||||
--- make comparison for table.sort
|
--- make comparison for table.sort
|
||||||
|
@ -7,11 +7,8 @@
|
|||||||
local bench = {}
|
local bench = {}
|
||||||
local b
|
local b
|
||||||
|
|
||||||
function bench:setup()
|
function bench.setup()
|
||||||
local o = {}
|
local o = {}
|
||||||
self = {}
|
|
||||||
self.__index = self
|
|
||||||
setmetatable(o, self)
|
|
||||||
|
|
||||||
o.perf = {}
|
o.perf = {}
|
||||||
o.inited = true
|
o.inited = true
|
||||||
|
Reference in New Issue
Block a user