Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
float multiply 7199814.0 Ops/sec
bigInt multiply 7474352.5 Ops/sec
float compare 7223729.0 Ops/sec
bigInt compare 7584354.0 Ops/sec
string compare 6984238.5 Ops/sec
float greater 7241460.5 Ops/sec
bigint greater 7577120.0 Ops/sec
string greater 6916189.0 Ops/sec
toString bigInt 7205960.5 Ops/sec
toString float 12665293.0 Ops/sec
toFloat bigInt 7188102.5 Ops/sec
toFloat string 5320441.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