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
saturnflyer-activerecord-jdbc-adapter-0.9.3 bench/bench_valid.rb
activerecord-jdbc-adapter-1.2.9.1 bench/bench_valid.rb
activerecord-jdbc-adapter-1.3.0.beta2 bench/bench_valid.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 bench/bench_valid.rb
activerecord-jdbc-adapter-1.3.0.beta1 bench/bench_valid.rb
activerecord-jdbc-adapter-1.2.9 bench/bench_valid.rb
activerecord-jdbc-adapter-1.2.8 bench/bench_valid.rb
activerecord-jdbc-adapter-1.2.5 bench/bench_valid.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 bench/bench_valid.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 bench/bench_valid.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 bench/bench_valid.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 bench/bench_valid.rb
activerecord-jdbc-adapter-1.2.2.1 bench/bench_valid.rb
activerecord-jdbc-adapter-onsite-1.2.2 bench/bench_valid.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 bench/bench_valid.rb
activerecord-jdbc-adapter-1.2.2 bench/bench_valid.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 bench/bench_valid.rb
activerecord-jdbc-adapter-1.2.1 bench/bench_valid.rb
activerecord-jdbc-adapter-1.2.0 bench/bench_valid.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 bench/bench_valid.rb