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-1.6 examples/adapters/sequel_mysql.rb
polyphony-1.5 examples/adapters/sequel_mysql.rb
polyphony-1.4 examples/adapters/sequel_mysql.rb
polyphony-1.3 examples/adapters/sequel_mysql.rb
polyphony-1.2.1 examples/adapters/sequel_mysql.rb
polyphony-1.2 examples/adapters/sequel_mysql.rb
polyphony-1.1.1 examples/adapters/sequel_mysql.rb
polyphony-1.1 examples/adapters/sequel_mysql.rb
polyphony-1.0.2 examples/adapters/sequel_mysql.rb
polyphony-1.0.1 examples/adapters/sequel_mysql.rb
polyphony-1.0 examples/adapters/sequel_mysql.rb
polyphony-0.99.6 examples/adapters/sequel_mysql.rb
polyphony-0.99.5 examples/adapters/sequel_mysql.rb
polyphony-0.99.4 examples/adapters/sequel_mysql.rb
polyphony-0.99.3 examples/adapters/sequel_mysql.rb
polyphony-0.99.2 examples/adapters/sequel_mysql.rb
polyphony-0.99.1 examples/adapters/sequel_mysql.rb
polyphony-0.99 examples/adapters/sequel_mysql.rb
polyphony-0.98 examples/adapters/sequel_mysql.rb
polyphony-0.97 examples/adapters/sequel_mysql.rb