Add perf measuring suite

I was playing around with this in an effort to start supporting the encoding spec. That ended up being a horribly slow bust, but I thought this perf tool might be useful.