mysqlplus/test/c_threaded_test.rb

36 lines
1.1 KiB
Ruby
Raw Permalink 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
ThreadedMysqlTest.new( 10, "Threaded, C, very small overhead" ) do |test|
2008-09-06 16:21:36 +00:00
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = 0.005
2008-09-10 00:26:01 +00:00
test.query_with = :c_async_query
test.run!
end
ThreadedMysqlTest.new( 10, "Threaded, C, small overhead" ) do |test|
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = 0.1
2008-09-10 00:26:01 +00:00
test.query_with = :c_async_query
test.run!
end
ThreadedMysqlTest.new( 10, "Threaded, C, medium overhead" ) do |test|
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = 1
2008-09-10 00:26:01 +00:00
test.query_with = :c_async_query
test.run!
end
ThreadedMysqlTest.new( 10, "Threaded, C, large overhead" ) do |test|
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = 3
2008-09-10 00:26:01 +00:00
test.query_with = :c_async_query
test.run!
end
ThreadedMysqlTest.new( 10, "Threaded, C, random overhead" ) do |test|
test.setup{ Mysql.real_connect('localhost','root') }
test.per_query_overhead = :random
2008-09-10 00:26:01 +00:00
test.query_with = :c_async_query
test.run!
end