Skip to content

Commit 71a568c

Browse files
committed
Update benchmark.rb to print progress
1 parent c48dd48 commit 71a568c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

benchmarks.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
results = []
66

7-
ARGV.each do |file|
7+
total = ARGV.size
8+
ARGV.each_with_index do |file, index|
89
GC.start
9-
10-
STDERR.puts "Benchmarking with #{file}..."
10+
11+
STDERR.puts "#{index}/#{total}\tBenchmarking with #{file}..."
1112
content = File.read(file)
1213

1314
benchmark = Benchmark.ips do |x|

0 commit comments

Comments
 (0)