Skip to content
Prev Previous commit
Next Next commit
benchmark: use let instead of var in common.js
  • Loading branch information
dnlup committed Feb 14, 2020
commit 1162d9c847fd0458887dffd319b79ee80e5de87b
2 changes: 1 addition & 1 deletion benchmark/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function formatResult(data) {
conf += ` ${key}=${JSON.stringify(data.conf[key])}`;
}

var rate = data.rate.toString().split('.');
let rate = data.rate.toString().split('.');
rate[0] = rate[0].replace(/(\d)(?=(?:\d\d\d)+(?!\d))/g, '$1,');
rate = (rate[1] ? rate.join('.') : rate[0]);
return `${data.name}${conf}: ${rate}`;
Expand Down