Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Windows
Desktop
2 months ago
Test name Executions per second
float multiply 2617754.0 Ops/sec
bigInt multiply 3609814.0 Ops/sec
float compare 3598857.0 Ops/sec
bigInt compare 3430137.0 Ops/sec
string compare 3840754.0 Ops/sec
float greater 2681895.0 Ops/sec
bigint greater 2874655.0 Ops/sec
string greater 3320578.0 Ops/sec
toString bigInt 1939907.0 Ops/sec
toString float 6072368.0 Ops/sec
toFloat bigInt 3049075.0 Ops/sec
toFloat string 2996676.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