Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
8 months ago
Test name Executions per second
float multiply 2743846.0 Ops/sec
bigInt multiply 2825301.0 Ops/sec
float compare 4188108.0 Ops/sec
bigInt compare 4432204.0 Ops/sec
string compare 4270333.0 Ops/sec
float greater 4242567.0 Ops/sec
bigint greater 4414756.0 Ops/sec
string greater 4196363.0 Ops/sec
toString bigInt 3951393.0 Ops/sec
toString float 7651273.0 Ops/sec
toFloat bigInt 4056388.0 Ops/sec
toFloat string 3214459.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