Bool checks

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
bool check
let result = false;
let check = true;
for (let i = 0; i < 10000; i++) {
	if (!result) {
		result = check;
	}
}
ready
bool check and
let result = false;
let check = true;
for (let i = 0; i < 10000; i++) {
	result &= check;
}
ready

Revisions

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