Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36
Chrome Mobile 120
Android
Mobile
one year ago
Test name Executions per second
Number (with string integer) 1981774.0 Ops/sec
Unary + (with string integer) 2848016.8 Ops/sec
parseInt (with string integer) 1957631.1 Ops/sec
Number (with string float) 1136525.4 Ops/sec
Unary + (with string float) 1436460.2 Ops/sec
parseInt (with string float) 1290166.4 Ops/sec
Number (with integer) 2097251.2 Ops/sec
Unary + (with integer) 3062865.5 Ops/sec
parseInt (with integer) 2009013.1 Ops/sec
Number (with float) 2913221.2 Ops/sec
Unary + (with float) 5494483.0 Ops/sec
parseInt (with float) 2627235.0 Ops/sec
Number (with NaN) 5790934.0 Ops/sec
Unary + (with NaN) 1260127232.0 Ops/sec
parseInt (with NaN) 5324194.5 Ops/sec
Tests:
  • Number (with string integer)

  • Unary + (with string integer)

  • parseInt (with string integer)

  • Number (with string float)

  • Unary + (with string float)

  • parseInt (with string float)

  • Number (with integer)

  • Unary + (with integer)

  • parseInt (with integer)

  • Number (with float)

  • Unary + (with float)

  • parseInt (with float)

  • Number (with NaN)

  • Unary + (with NaN)

  • parseInt (with NaN)