Sha256: fceb0a374d21d60d9855ea179293d3f3124b48f4fbc15785cf98c0e8eee2bc19

Contents?: true

Size: 232 Bytes

Versions: 21

Compression:

Stored size: 232 Bytes

Contents

require File.dirname(__FILE__) + '/bench_model'

puts "Widget.new.valid?"
Benchmark.bm do |make|
  TIMES.times do
    make.report do
      widget = Widget.new
      100_000.times do
        widget.valid?
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
jashmenn-activerecord-jdbc-adapter-1.2.0 bench/bench_valid.rb