Multiplication vs bit shift

Benchmark created on


Setup

var testVal = 1234;

Test runner

Ready to run.

Testing in
TestOps/sec
Multiply by 128
testVal * 128;
ready
Left shift by 7 bits
testVal << 7;
ready

Revisions

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