Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Number (with string integer) 5011013.0 Ops/sec
Unary + (with string integer) 6791675.0 Ops/sec
parseInt (with string integer) 5542416.5 Ops/sec
Number (with string float) 3988912.8 Ops/sec
Unary + (with string float) 5002234.5 Ops/sec
parseInt (with string float) 4889272.0 Ops/sec
Number (with integer) 6649283.5 Ops/sec
Unary + (with integer) 9649725.0 Ops/sec
parseInt (with integer) 6691829.0 Ops/sec
Number (with float) 9801152.0 Ops/sec
Unary + (with float) 18321442.0 Ops/sec
parseInt (with float) 4827651.5 Ops/sec
Number (with NaN) 15441607.0 Ops/sec
Unary + (with NaN) 66139736.0 Ops/sec
parseInt (with NaN) 19064688.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)


;