underscore shuffle (v5)

Revision 5 of this benchmark created on


Preparation HTML

<script src="//cdn.rawgit.com/lodash/lodash/c6654cdcab5aaac4c57097a316c7b94867eb75fc/dist/lodash.js"></script>
<script>var lodash = _.noConflict();</script>
<script src="//rawgit.com/megawac/lodash/shuffler/lodash.js"></script>
<script>var mdash = _.noConflict();</script>
<script src="//cdn.rawgit.com/lodash/lodash/11733f0f0cf7b291002009e0f0583259ff7bff4c/dist/lodash.js"></script>
<script>var edge = _.noConflict();</script>
<script>
var arr = Array(100);
for (var i = 0; i < 100; i++) {
  arr[i] = i;
}
</script>

Setup

var edge = window.edge,
        lodash = window.lodash,
        mdash = window.mdash;

Test runner

Ready to run.

Testing in
TestOps/sec
lodash.shuffle
lodash.shuffle(arr);
ready
lodash.shuffle2
mdash.shuffle(arr);
ready
lodash.shuffle3
edge.shuffle(arr);
ready

Revisions

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