Multiplication vs bit shift (v3)

Revision 3 of this benchmark created by gaefadf 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
Multiply by 100
testVal * 100;
ready

Revisions

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