Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows 8.1
Desktop
one year ago
Test name Executions per second
String() 1350717.9 Ops/sec
.toString() 1341947.2 Ops/sec
template string 782320.8 Ops/sec
add to string 1380920.8 Ops/sec
Number to Number via + 8045187.5 Ops/sec
String to Number via + 7483008.5 Ops/sec
String to Number via parseInt 6260998.0 Ops/sec
Tests:
  • String()

  • .toString()

  • template string

  • add to string

  • Number to Number via +

  • String to Number via +

  • String to Number via parseInt


;