Adjusted benchmark to API.