Put a performance testing framework in place

In preparation for codespeed, get all the performance tests in one place. The goal is to run them and have them report in a uniform way. It should become easy to add new performance tests.