`/ 2` versus `* 0.5` (v2)

Revision 2 of this benchmark created on


Description

Compares dividing by two versus multiplying by one half.

Setup

const foo = Math.random()

Test runner

Ready to run.

Testing in
TestOps/sec
`/ 2`
const bar = foo / 2;
ready
`* 0.5`
const bar = foo * 0.5;
ready

Revisions

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