Script Preparation code:
x
 
var t;
function t1() {
    t = +'100000000';
}
function t2() {
    t = parseInt('100000000', 10);
}
function t3() {
    t = Number('100000000');
}
Tests:
  • Test 1

     
    t1();
  • Test 2

     
    t2();
  • Test 3

     
    t3();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Test 1
    Test 2
    Test 3

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 20 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Test 1 270549664.0 Ops/sec
Test 2 276620480.0 Ops/sec
Test 3 253246960.0 Ops/sec