diff options
| author | Paul Duncan <pabs@pablotron.org> | 2016-08-31 17:03:24 -0400 | 
|---|---|---|
| committer | Paul Duncan <pabs@pablotron.org> | 2016-08-31 17:03:24 -0400 | 
| commit | 199d786cb4accd50375164d1f65336bb08441092 (patch) | |
| tree | b973bb832ddd668e19ec22ad622c6bdd6f83c24c /bench.rb | |
| download | csv-test-199d786cb4accd50375164d1f65336bb08441092.tar.xz csv-test-199d786cb4accd50375164d1f65336bb08441092.zip | |
add scripts
Diffstat (limited to 'bench.rb')
| -rw-r--r-- | bench.rb | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/bench.rb b/bench.rb new file mode 100644 index 0000000..e34bcda --- /dev/null +++ b/bench.rb @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +require 'benchmark' + +Benchmark.bm(5) do |bm| +  bm.report('python') do  +    `python2.7 ./csv-test.py test.csv out.csv` +  end + +  bm.report('ruby') do +    `ruby ./csv-test.rb test.csv out.csv` +  end +end | 
