update / optimize benchmark.lua