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