Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76
Chrome 118
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
float multiply 6973855.0 Ops/sec
bigInt multiply 6193676.0 Ops/sec
float compare 6978956.5 Ops/sec
bigInt compare 6783828.5 Ops/sec
string compare 6585612.5 Ops/sec
float greater 6936985.5 Ops/sec
bigint greater 6792408.5 Ops/sec
string greater 6563480.0 Ops/sec
toString bigInt 6494101.0 Ops/sec
toString float 10520317.0 Ops/sec
toFloat bigInt 6448069.5 Ops/sec
toFloat string 4882705.5 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


;