Sha256: 5583b2c41bff88e83abbd858599a6bb8a8fa068d10c6c3e9f613771a20007eff
Contents?: true
Size: 512 Bytes
Versions: 4
Compression:
Stored size: 512 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'fresh_connection' require 'benchmark/ips' require 'active_record' require 'mysql2' class ActiveRecord::Base establish_connection( adapter: 'mysql2', encoding: 'utf8', database: 'kaeruspoon_development', pool: 5, username: 'root', password: '', socket: '/tmp/mysql.sock', slave: { encoding: 'utf8' } ) end class Article < ActiveRecord::Base end Benchmark.ips do |x| x.report("find") { Article.take } end
Version data entries
4 entries across 4 versions & 1 rubygems