Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36
Chrome Mobile 114
Android
Mobile
one year ago
Test name Executions per second
float multiply 3723225.0 Ops/sec
bigInt multiply 3293048.0 Ops/sec
float compare 3709038.0 Ops/sec
bigInt compare 3368925.0 Ops/sec
string compare 3572892.0 Ops/sec
float greater 3719584.0 Ops/sec
bigint greater 3400266.0 Ops/sec
string greater 3591998.0 Ops/sec
toString bigInt 3312944.0 Ops/sec
toString float 6660905.0 Ops/sec
toFloat bigInt 3276006.0 Ops/sec
toFloat string 2519951.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