vs length 0

Benchmark created on


Setup

<script>

function isStringEmtpy1(s) {
	return !!s;
}
function isStringEmtpy2(s) {
	return s === '';
}

</script>

Test runner

Ready to run.

Testing in
TestOps/sec
one
isStringEmtpy1('')
ready
two
isStringEmtpy2('')
ready

Revisions

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