remove the require rubygems from test, so that we can have more control over which version is being tested
This commit is contained in:
parent
aab6964387
commit
0fa6f9f30f
@ -1,4 +1,3 @@
|
||||
require 'rubygems'
|
||||
require 'mysqlplus'
|
||||
require 'benchmark'
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
# note that we load all the rows first, then run .all_hashes on the result [to see more easily the effect of all hashes]
|
||||
# on my machine and a 200_000 row table, it took 3.38s versus 3.65s for the old .each_hash way [note also that .each_hash is
|
||||
# almost as fast, now, as .all_hashes--they've both been optimized]
|
||||
require 'rubygems'
|
||||
require 'mysqlplus'
|
||||
|
||||
use_the_all_hashes_method = true
|
||||
|
@ -1,4 +1,3 @@
|
||||
require 'rubygems'
|
||||
require 'mysqlplus'
|
||||
begin
|
||||
Mysql.real_connect('fakehost','root', '', 'local_leadgen_dev')
|
||||
|
@ -1,4 +1,3 @@
|
||||
require 'rubygems'
|
||||
require 'mysqlplus'
|
||||
|
||||
class MysqlTest
|
||||
|
@ -1,4 +1,3 @@
|
||||
require 'rubygems'
|
||||
require 'mysqlplus'
|
||||
a = Mysql.real_connect('localhost','root')
|
||||
100.times { a.query("select sleep(0)") }
|
||||
|
@ -5,7 +5,6 @@
|
||||
# from .82s to .62s
|
||||
# you can experiment with it by changing the query here to be a long one, and toggling the do_the_use_query_optimization variable
|
||||
# this also has the interesting property of 'freeing' Ruby to do thread changes mid-query.
|
||||
require 'rubygems'
|
||||
require 'mysqlplus'
|
||||
|
||||
do_the_use_query_optimization = true
|
||||
|
@ -1,7 +1,7 @@
|
||||
require 'mysqlplus'
|
||||
require 'rubygems'
|
||||
require 'sequel'
|
||||
|
||||
require 'mysqlplus'
|
||||
class Mysql
|
||||
unless method_defined? :sync_query
|
||||
alias :sync_query :query
|
||||
|
Loading…
Reference in New Issue
Block a user