Tests:

Historical Performance Data aggregated from 23 community runs

Desktop Results:
Chrome 23 runs
Unary + (with NaN)
166.8M/s
Number (with NaN)
15.9M/s
parseInt (with NaN)
15.9M/s
Unary + (with float)
14.9M/s
Number (with float)
8.0M/s
Unary + (with integer)
7.9M/s
parseInt (with float)
7.8M/s
Unary + (with string integer)
7.5M/s
Number (with integer)
5.4M/s
parseInt (with integer)
5.3M/s
parseInt (with string integer)
5.3M/s
Number (with string integer)
5.3M/s
Unary + (with string float)
4.3M/s
parseInt (with string float)
4.1M/s
Number (with string float)
3.4M/s

Fastest: Unary + (with NaN) (49.2x faster)

View exact numbers
  • Unary + (with NaN): 166,833,008 ops/sec
  • Number (with NaN): 15,944,333 ops/sec
  • parseInt (with NaN): 15,858,300 ops/sec
  • Unary + (with float): 14,895,774 ops/sec
  • Number (with float): 7,965,178 ops/sec
  • Unary + (with integer): 7,933,422 ops/sec
  • parseInt (with float): 7,779,816 ops/sec
  • Unary + (with string integer): 7,509,618 ops/sec
  • Number (with integer): 5,446,434 ops/sec
  • parseInt (with integer): 5,331,914 ops/sec
  • parseInt (with string integer): 5,304,712 ops/sec
  • Number (with string integer): 5,266,758 ops/sec
  • Unary + (with string float): 4,284,784 ops/sec
  • parseInt (with string float): 4,057,670 ops/sec
  • Number (with string float): 3,389,490 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Chrome 139 on Windows
View result in a separate tab
Number (with NaN)
133.6M/s
Unary + (with NaN)
128.9M/s
parseInt (with NaN)
123.7M/s
Number (with integer)
78.2M/s
Unary + (with float)
76.6M/s
Number (with float)
74.0M/s
Unary + (with integer)
74.0M/s
Number (with string integer)
63.2M/s
parseInt (with integer)
58.8M/s
parseInt (with float)
53.1M/s
Unary + (with string integer)
43.7M/s
parseInt (with string integer)
38.4M/s
parseInt (with string float)
8.6M/s
Unary + (with string float)
7.7M/s
Number (with string float)
7.4M/s
View exact numbers
Test name Executions per second
Number (with NaN) 133,550,008 Ops/sec
Unary + (with NaN) 128,934,136 Ops/sec
parseInt (with NaN) 123,709,656 Ops/sec
Number (with integer) 78,157,392 Ops/sec
Unary + (with float) 76,626,736 Ops/sec
Number (with float) 74,036,704 Ops/sec
Unary + (with integer) 73,983,024 Ops/sec
Number (with string integer) 63,153,728 Ops/sec
parseInt (with integer) 58,755,068 Ops/sec
parseInt (with float) 53,077,900 Ops/sec
Unary + (with string integer) 43,665,928 Ops/sec
parseInt (with string integer) 38,442,036 Ops/sec
parseInt (with string float) 8,629,276 Ops/sec
Unary + (with string float) 7,671,954 Ops/sec
Number (with string float) 7,397,962 Ops/sec