Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Windows
Desktop
2 months ago
Test name Executions per second
float multiply 254809776.0 Ops/sec
bigInt multiply 259517888.0 Ops/sec
float compare 250654480.0 Ops/sec
bigInt compare 256217312.0 Ops/sec
string compare 232769808.0 Ops/sec
float greater 242406096.0 Ops/sec
bigint greater 45567440.0 Ops/sec
string greater 251451408.0 Ops/sec
toString bigInt 5474557.5 Ops/sec
toString float 68193424.0 Ops/sec
toFloat bigInt 20292650.0 Ops/sec
toFloat string 8513081.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