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) 26658422.0 Ops/sec
Unary + (with string integer) 26949692.0 Ops/sec
parseInt (with string integer) 631521920.0 Ops/sec
Number (with string float) 2857142.5 Ops/sec
Unary + (with string float) 2888993.8 Ops/sec
parseInt (with string float) 664442944.0 Ops/sec
Number (with integer) 24996238.0 Ops/sec
Unary + (with integer) 628573696.0 Ops/sec
parseInt (with integer) 653822464.0 Ops/sec
Number (with float) 28933558.0 Ops/sec
Unary + (with float) 637370752.0 Ops/sec
parseInt (with float) 646396608.0 Ops/sec
Number (with NaN) 583592320.0 Ops/sec
Unary + (with NaN) 641475904.0 Ops/sec
parseInt (with NaN) 640161408.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)


;