Sha256: 7f16533699329d58a4fe5100b8e97e107c493146cb5c7a315ef4a0323862124d

Contents?: true

Size: 444 Bytes

Versions: 90

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony/adapters/sequel'
require 'polyphony/adapters/postgres'

time_printer = spin do
  last = Time.now
  throttled_loop(10) do
    now = Time.now
    puts now - last
    last = now
  end
end

db = Sequel.connect('mysql2://localhost/test')

x = 10_000
t0 = Time.now
x.times { db.execute('select 1 as test') }
puts "query rate: #{x / (Time.now - t0)} reqs/s"

time_printer.stop

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
polyphony-0.96 examples/adapters/sequel_mysql.rb
polyphony-0.95 examples/adapters/sequel_mysql.rb
polyphony-0.94 examples/adapters/sequel_mysql.rb
polyphony-0.93 examples/adapters/sequel_mysql.rb
polyphony-0.92 examples/adapters/sequel_mysql.rb
polyphony-0.91 examples/adapters/sequel_mysql.rb
polyphony-0.90 examples/adapters/sequel_mysql.rb
polyphony-0.89 examples/adapters/sequel_mysql.rb
polyphony-0.87 examples/adapters/sequel_mysql.rb
polyphony-0.86 examples/adapters/sequel_mysql.rb
polyphony-0.85 examples/adapters/sequel_mysql.rb
polyphony-0.84.1 examples/adapters/sequel_mysql.rb
polyphony-0.84 examples/adapters/sequel_mysql.rb
polyphony-0.83 examples/adapters/sequel_mysql.rb
polyphony-0.82 examples/adapters/sequel_mysql.rb
polyphony-0.81.1 examples/adapters/sequel_mysql.rb
polyphony-0.81 examples/adapters/sequel_mysql.rb
polyphony-0.80 examples/adapters/sequel_mysql.rb
polyphony-0.79 examples/adapters/sequel_mysql.rb
polyphony-0.78 examples/adapters/sequel_mysql.rb