refactor(benchmark): improve benchmark.js code