Run details:
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
Windows
Desktop
one year ago
Test name Executions per second
float multiply 122942608.0 Ops/sec
bigInt multiply 114065144.0 Ops/sec
float compare 116626992.0 Ops/sec
bigInt compare 122861680.0 Ops/sec
string compare 115880024.0 Ops/sec
float greater 115866088.0 Ops/sec
bigint greater 122146944.0 Ops/sec
string greater 120198248.0 Ops/sec
toString bigInt 15798475.0 Ops/sec
toString float 70153432.0 Ops/sec
toFloat bigInt 26497542.0 Ops/sec
toFloat string 11336580.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