Math.log10 vs Math.log / Math.LN10 vs (-Math.log * -0.4342944819032518) (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
	const n = 323.514867;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Math.log10
const r = Math.log10(n);
ready
Math.log / Math.LN10
const r = Math.log(n) / Math.LN10;
ready
(-Math.log * -0.4342944819032518)
const r = (-Math.log(n) * -0.4342944819032518);
ready

Revisions

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