zapalote / js-deduplicate-array-benchmark

Benchmarking javascript array operations

Repository from Github https://github.comzapalote/js-deduplicate-array-benchmarkRepository from Github https://github.comzapalote/js-deduplicate-array-benchmark

js-deduplicate-array-benchmark

A quick benchmark of some solutions to deduplicate a JS array. See this article for the explanation of the methods and the results.

Executing the benchmark

The easiest way to execute the benchmark is to paste the source onto a codepen running on the browser (engine) you want to test. Look at the console for the results. Repeat this on how many browsers you want to test.

For Node, you need to have Node installed on your computer, then simply type

$ node deduplicateArray.js

Author

License

This code is licensed under the MIT License - see the LICENSE.md file for details

About

Benchmarking javascript array operations


Languages

Language:JavaScript 100.0%