minor: include ruby version, date, git commit in benchmark output

This commit is contained in:
Kyle Banker 2010-09-14 11:09:34 -04:00
parent bfa4926e1d
commit 412ddc94cd

View File

@ -42,7 +42,12 @@ LARGE = {
} }
def print_headings def print_headings
puts "\n#{PER_TRIAL} documents or queries per trial. Batches of #{BATCH_SIZE} on batch inserts." puts "\nMongoDB Ruby Driver -- Standard Benchmark"
puts Time.now.utc.strftime("%d-%b-%Y")
puts `ruby -v` + "\n"
puts "Latest Commit:"
puts `git log | head -n4`
puts "#{PER_TRIAL} documents or queries per trial. Batches of #{BATCH_SIZE} on batch inserts."
printf("\n%s%-10s %-15s %-10s %-15s\n\n", "Test".ljust(40, ' '), "(real)", "(real ops/s)", "(user)", "(user ops/s)") printf("\n%s%-10s %-15s %-10s %-15s\n\n", "Test".ljust(40, ' '), "(real)", "(real ops/s)", "(user)", "(user ops/s)")
end end