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
4 months ago
Test name Executions per second
float multiply 2617754.0 Ops/sec
bigInt multiply 3609814.0 Ops/sec
float compare 3598857.2 Ops/sec
bigInt compare 3430136.5 Ops/sec
string compare 3840754.0 Ops/sec
float greater 2681894.5 Ops/sec
bigint greater 2874655.0 Ops/sec
string greater 3320577.5 Ops/sec
toString bigInt 1939906.9 Ops/sec
toString float 6072368.0 Ops/sec
toFloat bigInt 3049074.8 Ops/sec
toFloat string 2996675.8 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


;