Sha256: 87d40dd3278941e6ced308985fafc932ebc081fc6ece2b5a8321a4c8d0586f03

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

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

puts "Widget.new.valid?"
Benchmark.bm do |make|
  TIMES.times do
    make.report do
      1_000.times do
        Widget.create!(:name => "bench", :description => "Bench record")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
saturnflyer-activerecord-jdbc-adapter-0.9.3 bench/bench_create.rb