native map vs underscore map (v8)

Revision 8 of this benchmark created on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>

Setup

arr = [1, 2, 3, 4, 5];

Test runner

Ready to run.

Testing in
TestOps/sec
Native map
arr.map(function(entry) {
  return entry + 1;
});
ready
Undescore map
_.map(arr, function(entry) {
  return entry + 1;
});
ready

Revisions

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