Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.13
Desktop
one year ago
Test name Executions per second
float multiply 543279000.0 Ops/sec
bigInt multiply 540270400.0 Ops/sec
float compare 538700900.0 Ops/sec
bigInt compare 551440600.0 Ops/sec
string compare 544107300.0 Ops/sec
float greater 548724000.0 Ops/sec
bigint greater 547779600.0 Ops/sec
string greater 544202400.0 Ops/sec
toString bigInt 1857789.0 Ops/sec
toString float 545802900.0 Ops/sec
toFloat bigInt 18543320.0 Ops/sec
toFloat string 540644900.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