Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Windows
Desktop
6 months ago
Test name Executions per second
float multiply 2309210.0 Ops/sec
bigInt multiply 2350817.0 Ops/sec
float compare 2322627.8 Ops/sec
bigInt compare 2335404.2 Ops/sec
string compare 2250019.2 Ops/sec
float greater 2243890.0 Ops/sec
bigint greater 2250133.8 Ops/sec
string greater 2100364.0 Ops/sec
toString bigInt 2523867.2 Ops/sec
toString float 3751038.2 Ops/sec
toFloat bigInt 1794393.0 Ops/sec
toFloat string 1527262.6 Ops/sec
Script Preparation code:
Tests:
  • float multiply

  • bigInt multiply

  • float compare

  • bigInt compare

  • string compare

  • float greater

  • bigint greater

  • string greater

  • toString bigInt

  • toString float

  • toFloat bigInt

  • toFloat string