Sequel/postgres finders find by attributes Graph (Number of iterations per second)
Sequel/postgres finders find by attributes Graph (Allocated objects)
Sequel/postgres finders find by attributes Script
View on Github
require 'bundler/setup'
require 'sequel'
require_relative 'support/benchmark_sequel'
db_setup script: "bm_finders_setup.rb"
DB = Sequel.connect(ENV.fetch('DATABASE_URL'))
class User < Sequel::Model; end
Benchmark.sequel("sequel/#{db_adapter}_finders_find_by_attributes", time: 5) do
user = User.select(:name, :email)[email: '[email protected]']
str = "name: #{user.name} email: #{user.email}"
end