examples/benchmark.rb in patternmatching-0.2.4 vs examples/benchmark.rb in patternmatching-0.2.5
- old
+ new
@@ -47,12 +47,13 @@
pattern(n-1)
end
end
# size depends on system stack max
-#count = 400 # for ruby 1.8 stack max
-#count = 300 # for ruby 1.9 stack max
-count = 100 # for jruby stack max
+#count = 600 # for ruby 1.8 stack max
+#count = 1000 # for ruby 1.9 (200706) stack max
+#count = 400 # for ruby 1.9 (200606) stack max
+count = 200 # for jruby1.0 stack max
plain = Recursive.new
start = Time.new
plain.plain(count)
plain_time = Time.new - start