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

Revision 21 of this benchmark created on


Preparation HTML

<script>
window.str = "Lorem ipsum dolor sit amet, te mei duis ancillae, duo cu congue oblique deleniti. Vide splendide omittantur an usu, alia delicatissimi ius te, eu pro invidunt scripserit. Est suas facete dissentiet cu, audiam ocurreret no vis, duo atqui nulla ad. Has cu dico legendos liberavisse. Ea vim persequeris comprehensam, ea causae pertinacia sea.";
</script>

Test runner

Ready to run.

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

Revisions

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