Math.pow vs pow10 (v2)

Revision 2 of this benchmark created on


Setup

const pow10 = scale => +`1${'0'.repeat(scale)}`;

Test runner

Ready to run.

Testing in
TestOps/sec
pow10
pow10(1000);
ready
Math.pow
Math.pow(10, 1000);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.