Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Linux
Desktop
8 months ago
Test name Executions per second
Number (with string integer) 2689554.2 Ops/sec
Unary + (with string integer) 3959345.2 Ops/sec
parseInt (with string integer) 2700141.0 Ops/sec
Number (with string float) 1711632.0 Ops/sec
Unary + (with string float) 2315956.2 Ops/sec
parseInt (with string float) 2194452.0 Ops/sec
Number (with integer) 3000171.0 Ops/sec
Unary + (with integer) 4455656.0 Ops/sec
parseInt (with integer) 2973417.8 Ops/sec
Number (with float) 4459806.0 Ops/sec
Unary + (with float) 8568664.0 Ops/sec
parseInt (with float) 4039367.0 Ops/sec
Number (with NaN) 8723734.0 Ops/sec
Unary + (with NaN) 844908736.0 Ops/sec
parseInt (with NaN) 9154039.0 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)


;