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
3 months ago
Test name Executions per second
float multiply 2309210.0 Ops/sec
bigInt multiply 2350817.0 Ops/sec
float compare 2322628.0 Ops/sec
bigInt compare 2335404.0 Ops/sec
string compare 2250019.0 Ops/sec
float greater 2243890.0 Ops/sec
bigint greater 2250134.0 Ops/sec
string greater 2100364.0 Ops/sec
toString bigInt 2523867.0 Ops/sec
toString float 3751038.0 Ops/sec
toFloat bigInt 1794393.0 Ops/sec
toFloat string 1527263.0 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