about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--test/benchmark/stack.ru8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/benchmark/stack.ru b/test/benchmark/stack.ru
new file mode 100644
index 0000000..fc9193f
--- /dev/null
+++ b/test/benchmark/stack.ru
@@ -0,0 +1,8 @@
+run(lambda { |env|
+  body = "#{caller.size}\n"
+  h = {
+    "Content-Length" => body.size.to_s,
+    "Content-Type" => "text/plain",
+  }
+  [ 200, h, [ body ] ]
+})