Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113
Android
Mobile
one year ago
Test name Executions per second
float multiply 4133337.0 Ops/sec
bigInt multiply 3918210.0 Ops/sec
float compare 4061334.0 Ops/sec
bigInt compare 3918288.0 Ops/sec
string compare 3969862.0 Ops/sec
float greater 4056693.0 Ops/sec
bigint greater 3738022.0 Ops/sec
string greater 3821964.0 Ops/sec
toString bigInt 3452212.0 Ops/sec
toString float 6837171.0 Ops/sec
toFloat bigInt 3067237.0 Ops/sec
toFloat string 2521643.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