use a context manager to eveluate performance