Sha256: a1a9d444fbc95343e28f907f647afeb20c1e321c1ef6c2748f288526350cfd54

Contents?: true

Size: 279 Bytes

Versions: 21

Compression:

Stored size: 279 Bytes

Contents

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

puts "Widget.find(:first).attributes"
Benchmark.bm do |make|
  TIMES.times do
    w = Widget.find(:first)
    make.report do
      10_000.times do
        w.attributes # rails makes copy for every call
      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_attributes.rb
activerecord-jdbc-adapter-1.2.9.1 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.3.0.beta2 bench/bench_attributes.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.3.0.beta1 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.2.9 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.2.8 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.2.5 bench/bench_attributes.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 bench/bench_attributes.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 bench/bench_attributes.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 bench/bench_attributes.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.2.2.1 bench/bench_attributes.rb
activerecord-jdbc-adapter-onsite-1.2.2 bench/bench_attributes.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.2.2 bench/bench_attributes.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.2.1 bench/bench_attributes.rb
activerecord-jdbc-adapter-1.2.0 bench/bench_attributes.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 bench/bench_attributes.rb