refactor perf.js base on jasmine
reformat perf.js