mysqlplus/test/evented_test.rb

31 lines
896 B
Ruby
Raw Normal View History

2008-09-05 17:23:47 +00:00
require File.dirname(__FILE__) + '/test_helper'
2008-08-26 23:05:20 +00:00
EventedMysqlTest.new( 10, "Evented, very small overhead" ) do |test|
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = 0.005
test.run!
end
EventedMysqlTest.new( 10, "Evented, small overhead" ) do |test|
2008-09-06 16:21:36 +00:00
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = 0.1
test.run!
end
EventedMysqlTest.new( 10, "Evented, medium overhead" ) do |test|
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = 1
test.run!
end
EventedMysqlTest.new( 10, "Evented, large overhead" ) do |test|
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = 3
test.run!
end
EventedMysqlTest.new( 10, "Evented, random overhead" ) do |test|
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = :random
test.run!
2008-09-05 17:23:47 +00:00
end