-- Sibling of vararg.lua: equivalent total work but with fixed
-- arity, isolating the vararg dispatch overhead.
localfunctionsum_four(a,b,c,d)returna+b+c+dendfunction_bench()localtotal=0fori=1,500dototal=total+sum_four(1,2,3,4)endreturntotalendfori=1,2500do_bench()endprint("calls/fixedarg: true")