Updated performance test code. New interface for queue