testsuite: Add infrastructure for recording of perf counters
Today @AndreasK suggested that we should use performance counter values (namely instruction counts) from our performance tests to track compiler performance. This is an quick and dirty prototype of this idea.