-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
output from running benchmarks: (where are the numbers? how to best run them?)
array-unique git:(master) ✗ node benchmark
#1: long
filter:
filter2:
forIn:
linearSearch01:
setImmutable:
set:
whileHash:
while:
fastest is
#2: med
filter:
filter2:
forIn:
linearSearch01:
setImmutable:
set:
whileHash:
while:
fastest is
#3: short
filter:
filter2:
forIn:
linearSearch01:
setImmutable:
set:
whileHash:
while:
fastest isadded filter 2 which is:
module.exports = function(arr) {
return arr.filter(function(value, index, arr) {
return arr.indexOf(value) === index;
});
};Metadata
Metadata
Assignees
Labels
No labels