Script Preparation code:
AخA
 
var num = 42;
var stringNum = '42';
Tests:
  • String To Int

     
    var result = Number(stringNum);
  • Number to String

     
    var result = num.toString();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    String To Int
    Number to String

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Chrome 97 on Linux
View result in a separate tab
Test name Executions per second
String To Int 4838670.0 Ops/sec
Number to String 12867266.0 Ops/sec