Sequel Long Running Benchmarks


Benchmark Types
Show the last
Results
Compare

Sequel/mysql2 scope all Graph (Number of iterations per second)

Sequel/mysql2 scope all Graph (Allocated objects)

Sequel/mysql2 scope all Script View on Github

require 'bundler/setup'
require 'sequel'
require_relative 'support/benchmark_sequel'

db_setup script: "bm_scope_all_setup.rb"

Sequel.connect(ENV.fetch('DATABASE_URL'))

class User < Sequel::Model; end

Benchmark.sequel("sequel/#{db_adapter}_scope_all", time: 5) do
  str = ""
  User.select(:name, :email, :approved, :age, :birthday).each do |user|
    str << "name: #{user.name} email: #{user.email} approved: #{user.approved} age: #{user.age} birthday: #{user.birthday}\n"
  end
end