Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows
Desktop
one year ago
Test name Executions per second
Number (with string integer) 26658420.0 Ops/sec
Unary + (with string integer) 26949690.0 Ops/sec
parseInt (with string integer) 631521900.0 Ops/sec
Number (with string float) 2857143.0 Ops/sec
Unary + (with string float) 2888994.0 Ops/sec
parseInt (with string float) 664442900.0 Ops/sec
Number (with integer) 24996240.0 Ops/sec
Unary + (with integer) 628573700.0 Ops/sec
parseInt (with integer) 653822500.0 Ops/sec
Number (with float) 28933560.0 Ops/sec
Unary + (with float) 637370800.0 Ops/sec
parseInt (with float) 646396600.0 Ops/sec
Number (with NaN) 583592300.0 Ops/sec
Unary + (with NaN) 641475900.0 Ops/sec
parseInt (with NaN) 640161400.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)