Make "bench" command in test/serialize.lua print time and memory info