https://github.com/dnbard/benchmark
https://github.com/dnbard/benchmark
benchmark benchmarking javascript
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnbard/benchmark
- Owner: dnbard
- Created: 2017-12-11T07:44:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-28T09:44:54.000Z (over 8 years ago)
- Last Synced: 2025-01-26T05:41:28.973Z (over 1 year ago)
- Topics: benchmark, benchmarking, javascript
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Benchmark ■■■▢▢
* [Array/List/Set Comparison](https://github.com/dnbard/benchmark/blob/master/docs/array.md) - performance comparison between native array and several custom collections
* [Class declaration(`class` vs `function`)](https://github.com/dnbard/benchmark/blob/master/docs/class-vs-function.md) - difference between `class` and `function` usage in JavaScript
* Dictionaries - coming soon
* ES6 new `String` function(includes, startsWith, endsWith, repeat) - coming soon
* [Sorted Arrays](https://github.com/dnbard/benchmark/blob/master/docs/sorted-array.md) - performance comparison of several libraries that provide SortedArray collection
## How to run tests by yourself
* Clone this repo (or fork it and clone)
* Don't forget to install all dependencies:
```sh
npm i
```
* Run individual test, ie:
```sh
node sortedArray.js
```
*Note: All tests were done on my Intel i5 4690 with 16MB RAM on NODE v8.8.x. You may(and will) receive different test results on different environment configuration. Please use my results with caution :)*