This commit is contained in:
nannal
2020-01-26 21:03:32 +02:00
commit 562b320154
700 changed files with 120537 additions and 0 deletions

10
node_modules/deck/bench/shuffle.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
var shuffle = require('../').shuffle;
var xs = [];
for (var i = 0; i < 1e5; i++) {
xs.push(Math.floor(Math.random() * 1e3));
}
var t0 = Date.now();
shuffle(xs);
var elapsed = Date.now() - t0;
console.log(elapsed);