improvements to performance example