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

Revision 27 of this benchmark created on


Preparation HTML

<script>
window.arr = [];
window.arr2 = [1, 2, 3];
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
=== ''
(arr);
ready
.length > 0
(arr.length > 0);
ready

Revisions

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