const t0 = performance.now()
console.time('test')
let num = 1000, arr = [];
for (let i = 0; i < 10000; i++) {
arr[i] = num.toString();
// arr[i] = num + ''
// arr[i] = String(1000);
}
const t1 = performance.now()
console.log(t1 - t0, 'milliseconds')
console.timeEnd('test')