cperf: type lookup test.

gcc appears to be O(1) on this point as expected because it uses hash
tables to index types internally.