Move common benchmarking code into local-only package