Bitwise division vs normal

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Bitwise int division (right shift)
for (let i = 0; i < 100000; i++) {
	let result = 512 >> 7
}
ready
Normal division
for (let i = 0; i < 100000; i++) {
	let result = 512 / 128
}
ready
Normal division with flooring result
for (let i = 0; i < 100000; i++) {
	let result = (512 / 128) >> 0
}
ready

Revisions

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