diff options
Diffstat (limited to 'benchmark.rb')
-rwxr-xr-x | benchmark.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/benchmark.rb b/benchmark.rb new file mode 100755 index 0000000..81e11f8 --- /dev/null +++ b/benchmark.rb @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby + + +ARGV[0].to_i.times { + start = Time.now + `#{ARGV[1]} #{ARGV[2]}` + puts Time.now-start +} + |