Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Chrome 144
Windows
Desktop
3 months ago
Test name Executions per second
Using the pow7() function 14185901.0 Ops/sec
Using the ** operator 14271814.0 Ops/sec
Using Math.pow() 14160823.0 Ops/sec
Multiplying seven times 14141877.0 Ops/sec
Using the pow27() function 14235648.0 Ops/sec
Using the pow37() function 14219195.0 Ops/sec
Using the powMult7() function 14191543.0 Ops/sec
Script Preparation code:
Tests:
  • Using the pow7() function

  • Using the ** operator

  • Using Math.pow()

  • Multiplying seven times

  • Using the pow27() function

  • Using the pow37() function

  • Using the powMult7() function