-- Hypothesis: allocating short-lived tables in a hot loop pressures the
-- mark-sweep GC. Useful baseline for "is GC the bottleneck?" questions.
-- Each iteration allocates a fresh 4-entry table and discards it.
function_bench()localsum=0fori=1,500dolocalt={a=i,b=i+1,c=i+2,d=i+3}sum=sum+t.a+t.b+t.c+t.dendreturnsumendfori=1,1200do_bench()endprint("alloc/short_tables: true")