Skip to content

benchmark results #7

@aretecode

Description

@aretecode

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 is

added filter 2 which is:

module.exports = function(arr) {
  return arr.filter(function(value, index, arr) {
    return arr.indexOf(value) === index;
  });
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions