Skip to content

wasafiri/csv-benchmark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple benchmarking script for comparing different Ruby csv parsers.

Some of these gems will only work with MRI 1.8, as they are native extensions.

Results
=======

Testing csv/presidents.csv

               user     system      total        real
CSV            0.010000   0.000000   0.010000 (  0.000632)
smarter_csv    0.000000   0.000000   0.000000 (  0.002412)
ccsv           0.000000   0.000000   0.000000 (  0.000110)

Testing csv/geoip.csv

               user     system      total        real
CSV            1.820000   0.000000   1.820000 (  1.831765)
smarter_csv    16.920000  0.040000  16.960000 ( 17.000845)
ccsv           0.100000   0.010000   0.110000 (  0.102375)


Parsing Error Handling
======================

It doesn't seem that ccsv has added any error handling capabilities since vonconrad (original csv-benchmark author) ran his tests.

Credits
=======

Sample CSVs are taken from:
presidents.csv > See People Software (http://seepeoplesoftware.com/downloads/older-versions/11-sample-csv-file-of-us-presidents.html)
geoip.csv 		 > MaxMind (http://www.maxmind.com/app/geolitecountry)

If you want to try a (significantly) larger file, MaxMind has a city-level geoip file as well: http://www.maxmind.com/app/geolitecity

About

App for benchmarking Ruby CSV libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%