sclass MultiBencherDemo { MultiBencher bencher; new DoubleVar var; Runnable action = r { double x = 0; repeat 1000 { x += random(); } var.set(x); }; swappable MultiBencher makeBencher() { ret new MultiBencher().interval(0.001).seconds(5.0); } run { bencher = makeBencher(); bencher.action(action); bencher.run(); print(+var); showText("Bench", bencher.renderMinRecords() + "\n" + str(bencher)); } }