Created
February 1, 2018 10:27
-
-
Save takkanm/8a62cf54ceff71f71bfabddddf78039b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
csv_text = (0..10).map { (?a..?z).to_a.join(',') }.join("\n") | |
require 'benchmark' | |
Benchmark.bmbm(10){|x| | |
x.report("parse csv"){ | |
100.times{ | |
CSV.parse(csv_text) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment