1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/env ruby require 'benchmark' Benchmark.bm(5) do |bm| bm.report('python') do `python2.7 ./py-test.py test.csv out.csv` end bm.report('ruby') do `ruby ./rb-test.rb test.csv out.csv` end bm.report('crystal') do `./cr-test test.csv out.csv` end end