Code that tests the performance of using a work pool.