py.test fixture for benchmarking code