Update perf tests to use /api endpoint