=== "" vs .length > 0 (v6)

Revision 6 of this benchmark created by David Mulder on


Preparation HTML

<script>
window.str = "hey";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
=== ''
(!(str === ""));
ready
.length > 0
(str.length > 0);
ready

Revisions

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