about summary refs log tree commit homepage
path: root/test/benchmark/previous.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/benchmark/previous.rb')
-rw-r--r--test/benchmark/previous.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/benchmark/previous.rb b/test/benchmark/previous.rb
new file mode 100644
index 0000000..8b6182a
--- /dev/null
+++ b/test/benchmark/previous.rb
@@ -0,0 +1,11 @@
+# Benchmark to compare Mongrel performance against
+# previous Mongrel version (the one installed as a gem).
+#
+# Run with:
+#
+#  ruby previous.rb [num of request]
+#
+
+require File.dirname(__FILE__) + '/utils'
+
+benchmark "print", %w(current gem), 1000, [1, 10, 100]