Adding some performance tests (and variations on it) from #194, ping #231.