-- Probe: method dispatch through a 2-level __index chain.
-- Sub inherits from Base, which holds the actual methods. Each
-- `obj:inc(1)` walks Sub.__index -> Base.__index -> method. Compare with
-- calls/method.lua (single-level chain) to measure how much extra
-- the deeper walk costs.
local Base =
Base. = Base
local Sub = setmetatable
Sub. = Sub
local s = Sub.
for i = 1, 400
print