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
7 months ago
Test name Executions per second
float multiply 5248354.0 Ops/sec
bigInt multiply 5415162.0 Ops/sec
float compare 5213679.0 Ops/sec
bigInt compare 5333988.0 Ops/sec
string compare 5186869.0 Ops/sec
float greater 5130825.0 Ops/sec
bigint greater 5364327.0 Ops/sec
string greater 5209843.0 Ops/sec
toString bigInt 4140903.0 Ops/sec
toString float 8920590.0 Ops/sec
toFloat bigInt 4846238.0 Ops/sec
toFloat string 3960605.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