Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Linux
Desktop
one year ago
Test name Executions per second
parseInt a number 1053955.1 Ops/sec
parseInt a string 884106.3 Ops/sec
toString a number 10317962.0 Ops/sec
toString a string 12114405.0 Ops/sec
unery convert to number from number 18786942.0 Ops/sec
unery convert to number from string 7113318.0 Ops/sec
Script Preparation code:
Tests:
  • parseInt a number

  • parseInt a string

  • toString a number

  • toString a string

  • unery convert to number from number

  • unery convert to number from string