Fix `basename` in perf/perf.js. [ci skip]