Add performance benchmarking tool

Adds performance benchmarking tooling. Detailed instructions can be found in contrib/perf/README.md