avoid starting beforeBenchmark more than once