Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Mac OS X 10.15
Desktop
2 years ago
(Math.round(*10000)/10000).toString()
921.2M/s
toFixed(4)
17.9M/s
toPrecision(4).toString()
12.0M/s
View exact numbers
Test name Executions per second
(Math.round(*10000)/10000).toString() 921,170,112 Ops/sec
toFixed(4) 17,930,714 Ops/sec
toPrecision(4).toString() 11,959,754 Ops/sec
Script Preparation code:
Tests: