summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqlslap.test
Commit message (Collapse)AuthorAgeFilesLines
* This is a patch to test the default schema location. unknown2006-03-101-0/+2
| | | | | | | client/mysqlslap.c: Formating mysql-test/t/mysqlslap.test: Adding test to test for using non-default database.
* Fixed bug #16167unknown2006-01-121-0/+2
| | | | | | | | | | | | | | | Added --use-threads option for porting to Windows. client/mysqlslap.c: Addinng thread option for porting to windows (second piece of code) Also added flush call to fix one bug mysql-test/r/mysqlslap.result: New results mysql-test/t/disabled.def: Bug 16167 should not be fixed mysql-test/t/mysqlslap.test: Added test for new use-threads option
* Merge neptunus.(none):/home/msvensson/mysql/mysql-5.1unknown2006-01-101-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into neptunus.(none):/home/msvensson/mysql/wl2930/my51-wl2930-integration client/mysqltest.c: Auto merged mysql-test/mysql-test-run.pl: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/r/mysqlslap.result: Real output produced, remove "echo" mysql-test/t/mysqlslap.test: Real output produced, remove "echo"
| * Add simple printout from mysqlslap.test to avoid empty result fileunknown2006-01-091-0/+2
| | | | | | | | | | | | | | mysql-test/r/mysqlslap.result: Update test result mysql-test/t/mysqlslap.test: Print something when test is complete
* | Cleaned up memory allocation to be a little more staight forward (though I ↵unknown2006-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | suspect someone will hate my sizeof() increment). Nothing really to see here. Updated comments in code. More comments are probably needed, but isn't that always the case? client/mysqlslap.c: Updated docs. Removed complicated malloc calls with a single malloc. Cleaned up the way statements were be free'd (aka its now a function instead of a bunch of copy/paste). Removed older and not so accurate timediff() call. Cleaned up call to parse out concurrency. mysql-test/t/mysqlslap.test: Edited the tests to make sure we check default concurrency (we can't test concurrency normally since in theory the results could be random). You will noticed that the result was not changed.
* | Now uses a single pass testing loop. Dual pass made no sense.unknown2006-01-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now does averaging when running iterations. Realligned a bunch of code and continued to remove global variables. Added CSV output along with printable. Structures are now provided for print options so adding XML, HTML, ... should now be trivial. client/client_priv.h: Simplified options client/mysqlslap.c: Giant cleanup. We now do single pass testing, not dual pass. The dual pass made no sense really especially when you started adding in more stats. Modified the testing loop so that it should not be possible to have both a fork() and thread version (which will make it easier to port to windows should someone want to). mysql-test/r/mysqlslap.result: New results mysql-test/t/mysqlslap.test: Adjusting for new options, and removed "archive" from the tests just in case archive is not compiled.
* | New option to run multiple engines through the same test:unknown2005-12-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --engine="myisam,archive" --number-of-rows has been removed for the time being and replaced with option to allow you to just repeat multiple time all of the inserts you specifed with data. When number-of-rows-returns it will be instead used for averaging rows while growing concurrency. Returned stats now has accurent row and query counts since it includes a multiple for the rows and queries added. Parser is now a touch smarter and understands end of file issues if you have a delimiter at the end of the file. client/client_priv.h: New options client/mysqlslap.c: Modifications for doing repeated tests. mysql-test/r/mysqlslap.result: New result file mysql-test/t/mysqlslap.test: Changes in tests to make sure concurrency failures would not occur.
* | See message in mysqlslap.c, but basically unknown2005-12-241-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | mysql-test-run.pl:unknown2005-12-211-0/+1
|/ | | | | | | | | | | | | | | | Don't run "mysqlslap" on Windows mysqlslap.test: We don't run "mysqlslap" on Windows mysql.sln: Removed build of "client/mysqlslap.c" on Windows VC++Files/mysql.sln: Removed build of "client/mysqlslap.c" on Windows mysql-test/t/mysqlslap.test: We don't run "mysqlslap" on Windows mysql-test/mysql-test-run.pl: Don't run "mysqlslap" on Windows
* WORKLOG #2983 Removed --help from test. (did so already, don't know whyunknown2005-12-051-1/+0
| | | | | | | | | | push didn't push that previous changeset!) mysql-test/r/mysqlslap.result: WORKLOG #2983 removed --help results mysql-test/t/mysqlslap.test: WORKLOG #2983 removed --help from test
* Worklog #2983 Mysqlslap load emulator tool and accompanied test, resultsunknown2005-11-291-0/+9
and modifications to mysql-test-run(.pl/.sh) client/Makefile.am: Worklog #2983, added mysqlslap to Makefile.am client/client_priv.h: Worklog #2983 Added OPT_CREATE_SLAP_SCHEMA mysql-test/mysql-test-run.pl: Worklog #2983 Added mysqlslap test binary to test script mysql-test/mysql-test-run.sh: Worklog #2983 Added mysqlslap binary def to test script client/mysqlslap.c: Worklog #2983 mysqlslap.c, new utility for running load simulation. mysql-test/r/mysqlslap.result: Worklog #2983 Mysqlslap test results mysql-test/t/mysqlslap.test: Worklog #2983 Mysqlslap test