Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Windows
Desktop
2 months ago
Test name Executions per second
float multiply 192529712.0 Ops/sec
bigInt multiply 306755776.0 Ops/sec
float compare 272476128.0 Ops/sec
bigInt compare 435716512.0 Ops/sec
string compare 262550832.0 Ops/sec
float greater 314595712.0 Ops/sec
bigint greater 48036968.0 Ops/sec
string greater 289911680.0 Ops/sec
toString bigInt 5043829.0 Ops/sec
toString float 71520400.0 Ops/sec
toFloat bigInt 23237326.0 Ops/sec
toFloat string 8506388.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