Script Preparation code:
Tests:

Historical Performance Data aggregated from 13 community runs

Desktop Results:
Chrome 13 runs
toString float
11.8M/s
bigint greater
7.0M/s
bigInt compare
6.9M/s
bigInt multiply
6.8M/s
float greater
6.8M/s
float compare
6.7M/s
float multiply
6.7M/s
string compare
6.6M/s
string greater
6.6M/s
toFloat bigInt
6.3M/s
toFloat string
4.5M/s
toString bigInt
4.4M/s

Fastest: toString float (2.7x faster)

View exact numbers
  • toString float: 11,768,862 ops/sec
  • bigint greater: 6,952,352 ops/sec
  • bigInt compare: 6,931,774 ops/sec
  • bigInt multiply: 6,848,756 ops/sec
  • float greater: 6,758,680 ops/sec
  • float compare: 6,728,144 ops/sec
  • float multiply: 6,725,612 ops/sec
  • string compare: 6,612,867 ops/sec
  • string greater: 6,579,450 ops/sec
  • toFloat bigInt: 6,310,714 ops/sec
  • toFloat string: 4,522,710 ops/sec
  • toString bigInt: 4,439,634 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
    float multiply
    bigInt multiply
    float compare
    bigInt compare
    string compare
    float greater
    bigint greater
    string greater
    toString bigInt
    toString float
    toFloat bigInt
    toFloat string

    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/136.0.0.0 Safari/537.36
Chrome 136 on Windows
View result in a separate tab
float multiply
122.9M/s
bigInt compare
122.9M/s
bigint greater
122.1M/s
string greater
120.2M/s
float compare
116.6M/s
string compare
115.9M/s
float greater
115.9M/s
bigInt multiply
114.1M/s
toString float
70.2M/s
toFloat bigInt
26.5M/s
toString bigInt
15.8M/s
toFloat string
11.3M/s
View exact numbers
Test name Executions per second
float multiply 122,942,608 Ops/sec
bigInt compare 122,861,680 Ops/sec
bigint greater 122,146,944 Ops/sec
string greater 120,198,248 Ops/sec
float compare 116,626,992 Ops/sec
string compare 115,880,024 Ops/sec
float greater 115,866,088 Ops/sec
bigInt multiply 114,065,144 Ops/sec
toString float 70,153,432 Ops/sec
toFloat bigInt 26,497,542 Ops/sec
toString bigInt 15,798,475 Ops/sec
toFloat string 11,336,580 Ops/sec