{"id":20901560,"url":"https://github.com/willfarrell/csv-benchmarks","last_synced_at":"2026-03-10T15:03:34.125Z","repository":{"id":49353588,"uuid":"517436895","full_name":"willfarrell/csv-benchmarks","owner":"willfarrell","description":"Benchmarks of popular CSV libraries","archived":false,"fork":false,"pushed_at":"2025-03-01T00:50:16.000Z","size":9998,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-13T03:34:38.317Z","etag":null,"topics":["csv","formatter","json","parser","stringify"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willfarrell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["willfarrell"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-07-24T21:06:49.000Z","updated_at":"2025-05-12T05:05:34.000Z","dependencies_parsed_at":"2023-12-01T02:41:07.135Z","dependency_job_id":"38800505-e06c-443a-abd4-3200ddfcbfe7","html_url":"https://github.com/willfarrell/csv-benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willfarrell/csv-benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fcsv-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fcsv-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fcsv-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fcsv-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willfarrell","download_url":"https://codeload.github.com/willfarrell/csv-benchmarks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willfarrell%2Fcsv-benchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30338598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:02:55.010Z","status":"ssl_error","status_checked_at":"2026-03-10T15:02:36.911Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","formatter","json","parser","stringify"],"created_at":"2024-11-18T11:36:00.198Z","updated_at":"2026-03-10T15:03:34.066Z","avatar_url":"https://github.com/willfarrell.png","language":"JavaScript","readme":"# JavaScript CSV Benchmarks\n\nBenchmarks of popular CSV parsers and formatters:\n\n\u003c!-- packages --\u003e\n| Package | Version | Published | Parse | Format \n|---------|---------|-----------|-------|--------\n| [csv-parse](https://www.npmjs.com/package/csv-parse) | 5.6.0 | 3 months ago | Yes |  \n| [csv-parser](https://www.npmjs.com/package/csv-parser) | 3.2.0 | 1 month ago | Yes |  \n| [csv-rex](https://www.npmjs.com/package/csv-rex) | 0.7.0 | 2 years ago | Yes | Yes \n| [csv-streamify](https://www.npmjs.com/package/csv-streamify) | 4.0.0 | 7 years ago | Yes |  \n| [csv-stringify](https://www.npmjs.com/package/csv-stringify) | 6.5.2 | 3 months ago |  | Yes \n| [csvtojson](https://www.npmjs.com/package/csvtojson) | 2.0.10 | 6 years ago | Yes |  \n| [fast-csv](https://www.npmjs.com/package/fast-csv) | 5.0.2 | 4 months ago | Yes | Yes \n| [papaparse](https://www.npmjs.com/package/papaparse) | 5.5.2 | 1 month ago | Yes |  \n\u003c!-- packages --\u003e\n\nYour preferred CSV package missing? PRs welcome. Excluded packages in `/docs/EXCLUDED.md`.\n\n## Tests\nThe tests run on generated data files with 10 - 100 columns and 10K - 1M rows, both quoted and unquoted. The stream implementation for each library were used to keep comparison consistent, but can be slower compared to self chunking in certain use cases.\n\n\u003c!-- tests --\u003e\n| columns x rows | cycles \n|----------------|--------\n| 10 x 10,000 | 20 \n| 100 x 10,000 | 10 \n| 10 x 100,000 | 10 \n| 100 x 100,000 | 5 \n| 10 x 1,000,000 | 5 \n\u003c!-- tests --\u003e\n\n## Results \nBenchmarked on GitHub Actions. Only the fastest 5 will be visualized.\n\n### Parse\n![Quoted CSV Parser Benchmarks](https://github.com/willfarrell/csv-benchmarks/raw/main/results/parse_quotes%3Dtrue.png)\n\n\u003c!-- parse quotes=true --\u003e\n| Package | 10x10K | 100x10K | 10x100K | 100x100K | 10x1000K \n|---------|---|---|---|---|---\n| **csv-rex** | 24ms | 170ms | 214ms | 1,705ms | 2,149ms \n| **papaparse** | 42ms | 190ms | 394ms | 2,031ms | 4,113ms \n| **csv-parser** | 38ms | 349ms | 385ms | 3,719ms | 4,148ms \n| **csvtojson** | 57ms | 444ms | 555ms | 4,440ms | 5,626ms \n| **csv-parse** | 76ms | 666ms | 740ms | 6,783ms | 7,765ms \n| **csv-streamify** | 74ms | 735ms | 855ms | 8,302ms | 9,574ms \n| **fast-csv** | 106ms | 936ms | 1,081ms | 9,624ms | 11,229ms \n\u003c!-- parse quotes=true --\u003e\n\n![Non-Quoted CSV Parser Benchmarks](https://github.com/willfarrell/csv-benchmarks/raw/main/results/parse_quotes%3Dfalse.png)\n\n\u003c!-- parse quotes=false --\u003e\n| Package | 10x10K | 100x10K | 10x100K | 100x100K | 10x1000K \n|---------|---|---|---|---|---\n| **csv-rex** | 9ms | 43ms | 82ms | 428ms | 815ms \n| **csvtojson** | 33ms | 247ms | 325ms | 2,495ms | 3,300ms \n| **csv-parser** | 33ms | 312ms | 345ms | 3,330ms | 3,712ms \n| **papaparse** | 132ms | 62ms | 1,175ms | 558ms | 10,619ms \n| **csv-parse** | 60ms | 537ms | 624ms | 5,585ms | 6,360ms \n| **csv-streamify** | 68ms | 671ms | 783ms | 7,622ms | 8,848ms \n| **fast-csv** | 86ms | 757ms | 892ms | 7,982ms | 9,239ms \n\u003c!-- parse quotes=false --\u003e\n\n### Format\n\n![Non-Quoted CSV Formatter Benchmarks](https://github.com/willfarrell/csv-benchmarks/raw/main/results/format_quotes%3Dfalse.png)\n\n\u003c!-- format quotes=false --\u003e\n| Package | 10x10K | 100x10K | 10x100K | 100x100K | 10x1000K \n|---------|---|---|---|---|---\n| **csv-rex** | 22ms | 106ms | 221ms | 1,074ms | 2,273ms \n| **csv-stringify** | 25ms | 112ms | 246ms | 1,114ms | 2,478ms \n| **fast-csv** | 29ms | 132ms | 292ms | 1,255ms | 2,834ms \n\u003c!-- format quotes=false --\u003e\n\n## Thanks\n- leanylabs who inspired the making of this repo with their article [CSV Parsers Comparison](https://leanylabs.com/blog/js-csv-parsers-benchmarks/).\n- [quickchart.io](https://quickchart.io) for the automation of the chart creation.\n- GitHub for providing free use of Actions for running the benchmarks.\n","funding_links":["https://github.com/sponsors/willfarrell"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fcsv-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillfarrell%2Fcsv-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillfarrell%2Fcsv-benchmarks/lists"}