measure time for data structure benchmarks more accurately