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
10 months ago
Test name Executions per second
float multiply 6973855.0 Ops/sec
bigInt multiply 6193676.0 Ops/sec
float compare 6978957.0 Ops/sec
bigInt compare 6783829.0 Ops/sec
string compare 6585613.0 Ops/sec
float greater 6936986.0 Ops/sec
bigint greater 6792409.0 Ops/sec
string greater 6563480.0 Ops/sec
toString bigInt 6494101.0 Ops/sec
toString float 10520320.0 Ops/sec
toFloat bigInt 6448070.0 Ops/sec
toFloat string 4882706.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