From 199d786cb4accd50375164d1f65336bb08441092 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 31 Aug 2016 17:03:24 -0400 Subject: add scripts --- bench.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bench.rb (limited to 'bench.rb') 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 -- cgit v1.2.3