isEmpty vs angular equals (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="https://cdn.jsdelivr.net/lodash/2.4.1/lodash.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>

Setup

var arr = [];
    var b = [12,12];

Test runner

Ready to run.

Testing in
TestOps/sec
_.isEmpty(a)
_.isEmpty(arr);
ready
angular.equals a
angular.equals(arr, []);
ready
_.isEmpty(b)
_.isEmpty(b);
ready
angular.equals b
angular.equals(b, []);
ready

Revisions

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