`/ 2` versus `* 0.5`

Benchmark created on


Description

Compares dividing by two versus multiplying by one half.

Test runner

Ready to run.

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

Revisions

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