Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 YaBrowser/22.11.5.715 Yowser/2.5 Safari/537.36
Yandex Browser 22
Windows
Desktop
one year ago
Test name Executions per second
implicit 18952926.0 Ops/sec
parseInt 5447838.0 Ops/sec
Number 6792982.5 Ops/sec
Script Preparation code:
AخA
 
var strNum = '6969699'
Tests:
  • implicit

     
    var imp = + strNum
  • parseInt

     
    var toStr = parseInt(strNum)
  • Number

     
    var num = Number(strNum)