https://github.com/ivanhuay/micron-concat-vs-push
Benchmark between javascript concat and push methods
https://github.com/ivanhuay/micron-concat-vs-push
benchmark concat javascript micron push
Last synced: 4 months ago
JSON representation
Benchmark between javascript concat and push methods
- Host: GitHub
- URL: https://github.com/ivanhuay/micron-concat-vs-push
- Owner: ivanhuay
- Created: 2019-06-11T14:30:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T01:52:08.000Z (over 4 years ago)
- Last Synced: 2025-05-27T15:51:11.970Z (about 1 year ago)
- Topics: benchmark, concat, javascript, micron, push
- Language: JavaScript
- Size: 122 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Micron benchmark Array.concat vs Array.push
This is a benchmark between `concat` and `push` method.
## Motivation
Analyze possible performance issues using these methods.
## Results:
Concat is the faster way to concatenate 2 arrays.
`For` loop and `forEach` methods with push are 3x times more slow than `concat`.
[view results HERE]()

## run the test
```
git clone https://github.com/ivanhuay/micron-mongoose-update-vs-save.git
cd micron-mongoose-update-vs-save
npm i
npm run test
```
after running that the results should be on the docs folder.