def puts?

1 view
Skip to first unread message

rogerdpack

unread,
Oct 10, 2009, 7:27:48 PM10/10/09
to Ruby Benchmark Suite
Noticed that in bench.rb it has

# Perhaps this should be configurable. Generally, it doesn't make
# sense for benchmark files to be puts'ing stuff unless it is
benching
# #puts. Validate the correctness of the benchmark independently.
def puts(*args)
end

however this only applies for puts within bench.rb, of which there are
none. It also leaves print, etc. intact, so isn't quite effective.
I assume it's ok to take this out?
Thanks.
-r

rogerdpack

unread,
Nov 12, 2009, 8:07:47 AM11/12/09
to Ruby Benchmark Suite
>   def puts(*args)
>   end
>
> however this only applies for puts within bench.rb, of which there are
> none.  It also leaves print, etc. intact, so isn't quite effective.
> I assume it's ok to take this out?

Removed it.
-r
Reply all
Reply to author
Forward
0 new messages