Improve benchmark to isolate the cost of object instantiation.