test ifs with returns

Benchmark created on


Preparation HTML

<script>
function func1(first, second, third) {
	if(!first) return;
	if(!second) return;
	if(!third) return;
}

function func2(n, m) {
	if(first && second && third) return;
}
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Func 1
func1(false,false,true)
ready
Func 2
func2(false,false,true)
ready

Revisions

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