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

Revision 17 of this benchmark created on


Preparation HTML

<script>
window.str = "";
</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.