Permalink
Browse files

Shorten the list_comprehension benchmark.

  • Loading branch information...
1 parent beb6fc4 commit 90deaa4367c6a5ebb27aa681005be774d6e1ab22 @postmodern committed Oct 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 benchmarks/list_comprehension.rb
@@ -7,8 +7,8 @@
Benchmark.bm(12) do |b|
singleton_list = ([1] * 500)
- single_enum_list = [1..200, 1]
- depth_list = [1..200]
+ single_enum_list = [1..100, 1]
+ depth_list = [1..100]
b.report('singleton:') do
singleton_list.comprehension.each { |list| list.last }

0 comments on commit 90deaa4

Please sign in to comment.