Bitwise or and boolean or

Benchmark created by Rei on


Test runner

Ready to run.

Testing in
TestOps/sec
Boolean or
var t = true, f = false, i = 0;

if (t || t) if (t || f) if (f || t) if (f || f) ++i;
ready
Bitwise or
var t = true, f = false, i = 0;

if (t | t) if (t | f) if (f | t) if (f | f) ++i;
ready

Revisions

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