Only run benchmarks if necessary