Add some basic benchmarking functionality.