From 412ddc94cd005334839fd094e81dd23d5c0bd11c Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Tue, 14 Sep 2010 11:09:34 -0400 Subject: [PATCH] minor: include ruby version, date, git commit in benchmark output --- bin/standard_benchmark | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/standard_benchmark b/bin/standard_benchmark index d30f7ff..c1ecb97 100755 --- a/bin/standard_benchmark +++ b/bin/standard_benchmark @@ -42,7 +42,12 @@ LARGE = { } 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)") end