You can use performance.now()
:
1 | const t0 = performance.now(); |
Or console.time
and console.timeEnd
:
1 | console.time('unshift'); |
You can use performance.now()
:
1 | const t0 = performance.now(); |
Or console.time
and console.timeEnd
:
1 | console.time('unshift'); |