add test-perf to get a rough idea of performance impact of changes.

This needs to be compiled with -O0 so that the test code does not
get optimized out. GCC is really good at optimizing the entire thing
into a printf with -O3.

The linked object files can be -O3 though.