Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
10 months ago
Test name Executions per second
float multiply 5361627.5 Ops/sec
bigInt multiply 5539728.0 Ops/sec
float compare 5342276.5 Ops/sec
bigInt compare 5571723.5 Ops/sec
string compare 5362438.0 Ops/sec
float greater 5358208.5 Ops/sec
bigint greater 5573755.0 Ops/sec
string greater 5348600.0 Ops/sec
toString bigInt 4439634.5 Ops/sec
toString float 9074700.0 Ops/sec
toFloat bigInt 4865253.5 Ops/sec
toFloat string 3987717.2 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