Skip to content
forked from Keyang/csvbench

Benchmark tool for node.js csv parsers.

Notifications You must be signed in to change notification settings

koresar/csvbench

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 (except lil-csv) 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

The lil-csv would

  1. read the whole 1.csv without streaming
  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
fast-csv: 1438.705ms
csv: 2346.760ms
csvtojson: 435.524ms
csv-parser: 878.652ms
papaparse: 430.366ms
lil-csv: 1135.411ms
$ node --version
v12.4.0

About

Benchmark tool for node.js csv parsers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%