Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3421.0 Safari/537.36
Chrome 68
Windows
Other
6 years ago
Test name Executions per second
float multiply 2576947.0 Ops/sec
bigInt multiply 1406982.0 Ops/sec
float compare 2683737.0 Ops/sec
bigInt compare 2187131.0 Ops/sec
string compare 2094893.0 Ops/sec
float greater 2484218.0 Ops/sec
bigint greater 1796237.0 Ops/sec
string greater 1931389.0 Ops/sec
toString bigInt 1535081.0 Ops/sec
toString float 4136287.0 Ops/sec
toFloat bigInt 1835411.0 Ops/sec
toFloat string 1466544.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