HTML Preparation code:
Script Preparation code:
Tests:
  • Multiply using Decimal.js

  • Multiply using native numbers

  • exactMath div

  • Decimal plus

  • exactMath add

  • Decimal times

  • exactMath mul

  • exactMath formula

  • Decimal times minus div

  • Decimal div

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Multiply using Decimal.js
    Multiply using native numbers
    exactMath div
    Decimal plus
    exactMath add
    Decimal times
    exactMath mul
    exactMath formula
    Decimal times minus div
    Decimal div

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0
Chrome 129 on Windows
View result in a separate tab
Test name Executions per second
Multiply using Decimal.js 994204.1 Ops/sec
Multiply using native numbers 14774614.0 Ops/sec
exactMath div 32990.6 Ops/sec
Decimal plus 1020175.6 Ops/sec
exactMath add 305080.3 Ops/sec
Decimal times 1002935.7 Ops/sec
exactMath mul 206247.9 Ops/sec
exactMath formula 10830.2 Ops/sec
Decimal times minus div 328676.6 Ops/sec
Decimal div 479168.3 Ops/sec


;