Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var plot = require('benchmark.js-plot').plot;
var Benchmark = require('benchmark');
var range = function(n) {
var result = [];
for (var i = 0; i < n; i++) {
result.push(i);
}
return result;
};
var random_stuff = function(i) {
switch(i % 10) {
case 0:
return i;
break;
case 1: