Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Mac OS X 10.15.7
Desktop
10 months ago
Test name Executions per second
float multiply 8332327.0 Ops/sec
bigInt multiply 8781614.0 Ops/sec
float compare 8376118.0 Ops/sec
bigInt compare 8796958.0 Ops/sec
string compare 8338593.0 Ops/sec
float greater 8327625.0 Ops/sec
bigint greater 8768612.0 Ops/sec
string greater 8306658.0 Ops/sec
toString bigInt 7830959.0 Ops/sec
toString float 14830420.0 Ops/sec
toFloat bigInt 8163513.0 Ops/sec
toFloat string 6122486.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