Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Linux
Desktop
2 months ago
Test name Executions per second
float multiply 22758360.0 Ops/sec
bigInt multiply 16612362.0 Ops/sec
float compare 29027774.0 Ops/sec
bigInt compare 29923526.0 Ops/sec
string compare 32229388.0 Ops/sec
float greater 29297920.0 Ops/sec
bigint greater 30106392.0 Ops/sec
string greater 27017206.0 Ops/sec
toString bigInt 1924079.6 Ops/sec
toString float 20295042.0 Ops/sec
toFloat bigInt 10762998.0 Ops/sec
toFloat string 4522710.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