refactor a bit to make testing a single revision easier

this lets git bisect run in a fast mode to avoid re-benchmarking
revisions that have already been tested.