Script Preparation code:
Tests:
  • toFixed(2)

  • toPrecision(2).toString()

  • (Math.round(*100)/100).toString()

  • (Math.round(*100) * 0.01).toString()

  • customRound(*100) * 0.01.toString()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    toFixed(2)
    toPrecision(2).toString()
    (Math.round(*100)/100).toString()
    (Math.round(*100) * 0.01).toString()
    customRound(*100) * 0.01.toString()

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!