summaryrefslogtreecommitdiff
path: root/mysql-test/r/mysqlslap.result
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2005-12-24 15:41:40 -0800
committerunknown <brian@zim.(none)>2005-12-24 15:41:40 -0800
commitac2708382d2b50995a3e4055e1fe24a44343150f (patch)
tree416470fc59f669dfbecb1bfeaa5d3c1ee6de6615 /mysql-test/r/mysqlslap.result
parent2f7d04166534c7ac7962096045136385cf573703 (diff)
downloadmariadb-git-ac2708382d2b50995a3e4055e1fe24a44343150f.tar.gz
See message in mysqlslap.c, but basically
1) Parsing now works 2) Options are safer, aka it doesn't kill the machine and it cleans up after itself 3) Option of --only-print added so that you can see what it does. 4) Tiny cleanup of the auto generate sql. A lot more needs to be done with this, for it to be very valuable. I suspect it doesn't work all that well. 5) Delimeter is now a single character. No good escaping going on. 6) You can now change which schema it is runninng against. Now I think I can go make use of it! Though I need to add support for a "only run this many inserts, divide by the number of clients connecting, to really test scaling" client/client_priv.h: Added new options for mysqlslap client/mysqlslap.c: Lots of cleanup. Highlights: 1) Parsing now works much better, though I suspect escaping issues still exist. All strings are parsed into a typedef called statement. This is a linked structure with each statement held in it. I added options for length so that when the time comes to fix this for binary data the guts of the main executing loop will not need to be changed 2) Cleaned up options so that it will not destroy data by default and will clean up itself by default. So no leaving around of gobs of data. 3) Added option of --only-print to see the SQL it would have executed 4) Parsing handles whitespace trick (which will come back to bite someone I expect) 5) Delimeter is now a single character 6) All memory allocated should now be freed. 7) Set defaults so that only a single run will occur if none are given. 8) You can now change the schema that it runs against. mysql-test/r/information_schema.result: Fix for Antony's merge mysql-test/r/mysqlslap.result: New result set More testing mysql-test/t/mysqlslap.test: More testing
Diffstat (limited to 'mysql-test/r/mysqlslap.result')
-rw-r--r--mysql-test/r/mysqlslap.result574
1 files changed, 573 insertions, 1 deletions
diff --git a/mysql-test/r/mysqlslap.result b/mysql-test/r/mysqlslap.result
index ae38fbe940a..1999466669d 100644
--- a/mysql-test/r/mysqlslap.result
+++ b/mysql-test/r/mysqlslap.result
@@ -1 +1,573 @@
-# this test result intentionally blank due to running in silent mode.
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+INSERT INTO t1 VALUES (1, 'This is a test');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+select * from t1;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+DROP SCHEMA IF EXISTS `mysqlslap`;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+INSERT INTO t1 VALUES (1, 'This is a test');
+insert into t2 values ('test', 'test2');
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+select * from t1;
+select * from t2;
+DROP SCHEMA IF EXISTS `mysqlslap`;
+CREATE SCHEMA `mysqlslap`;
+use mysqlslap;
+set storage_engine=`MYISAM`;
+CREATE TABLE t1 (id int, name varchar(64));
+create table t2(foo1 varchar(32), foo2 varchar(32));
+DROP SCHEMA IF EXISTS `mysqlslap`;