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

Revision 20 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
=== ''
(str === "hey");
ready
.length > 1
(str.length > 1);
ready
exists
(str)
ready

Revisions

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