Skip to content

Commit

Permalink
Made caching demo more expressing.
Browse files Browse the repository at this point in the history
  • Loading branch information
korny committed Mar 21, 2006
1 parent a3b4ad0 commit 2ee9927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/caching.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2ee9927

Please sign in to comment.