Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Linux
Desktop
one year ago
Test name Executions per second
Number (with string integer) 1776089.4 Ops/sec
Unary + (with string integer) 2904337.5 Ops/sec
parseInt (with string integer) 2062028.1 Ops/sec
Number (with string float) 1132269.8 Ops/sec
Unary + (with string float) 1446217.1 Ops/sec
parseInt (with string float) 1219123.2 Ops/sec
Number (with integer) 1692901.1 Ops/sec
Unary + (with integer) 2174857.2 Ops/sec
parseInt (with integer) 1703163.6 Ops/sec
Number (with float) 3059589.2 Ops/sec
Unary + (with float) 5843600.0 Ops/sec
parseInt (with float) 2873472.0 Ops/sec
Number (with NaN) 6440360.5 Ops/sec
Unary + (with NaN) 593298496.0 Ops/sec
parseInt (with NaN) 6422658.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)


;