diff options
author | murphy <murphy@rubychan.de> | 2006-03-21 14:51:52 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-03-21 14:51:52 +0000 |
commit | 2ee9927772880382e8ab3819805e6e3c62723395 (patch) | |
tree | aeb8c74431f2166208573dd40e64e9e446223080 /bench/caching.rb | |
parent | a3b4ad06b992bd418a1d34bfb271c09fd9bedf11 (diff) | |
download | coderay-2ee9927772880382e8ab3819805e6e3c62723395.tar.gz |
Made caching demo more expressing.
Diffstat (limited to 'bench/caching.rb')
-rw-r--r-- | bench/caching.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/caching.rb b/bench/caching.rb index 3f39fb9..7ea4e6a 100644 --- a/bench/caching.rb +++ b/bench/caching.rb @@ -1,8 +1,8 @@ require 'coderay'
require 'benchmark'
-N = 10
-$code = 'foo(Foo[:foo, /foo/m]); ' * 500
+N = 1000
+$code = 'snoo Snoo ' * 10
Benchmark.bm 15 do |bm|
bm.report 'loading' do
CodeRay::Scanners.load :ruby
|