Make the parameter call benchmark more computationally intensive

Still kind of lame though
This commit is contained in:
R. Tyler Croy 2014-10-26 17:19:36 -07:00
parent 60d66ac827
commit 790130dccc
1 changed files with 3 additions and 3 deletions

View File

@ -4,16 +4,16 @@ class Parametered
include Typedeaf
def method_with_params(buffer)
buffer.size
buffer.size + rand + rand
end
define :typedeaf_with_params, buffer: String do
buffer.size
buffer.size + rand + rand
end
end
blk = Proc.new do |buffer|
buffer.size
buffer.size + rand + rand
end
p = Parametered.new