Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keyang/csvbench
Benchmark tool for node.js csv parsers.
https://github.com/keyang/csvbench
benchmark csv csvtojson parse
Last synced: about 1 month ago
JSON representation
Benchmark tool for node.js csv parsers.
- Host: GitHub
- URL: https://github.com/keyang/csvbench
- Owner: Keyang
- Created: 2016-12-24T21:15:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-30T00:47:35.000Z (over 3 years ago)
- Last Synced: 2024-10-15T15:36:25.095Z (3 months ago)
- Topics: benchmark, csv, csvtojson, parse
- Language: JavaScript
- Homepage:
- Size: 12.6 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# About
This project compares the speed of different Node.JS csv parsers.
## To start
```
$ git clone https://github.com/Keyang/csvbench
$ npm install .
$ node ./index.js
```## Procedure
All parsers will simply do following
1. stream in 1.csv and start to parse
2. get content from 1st column of each row and write to a file`1.csv` contains 300K lines
# Result
Here is some result running on a 2019 Macbook Pro:
```
$ node ./index.js
csv: 1844.045ms
fast-csv: 1681.046ms
csv-parser: 722.762ms
csvtojson: 436.225ms
papaparse: 434.335ms
$ node --version
v12.4.0
```