Running benchmarks when necessary