This is a simple framework to benchmark the Query Response Time between MySQL versions in a Windows environment. The current version works with MySQL 5.6 and MySQL 5.7, but can be adapted to work with other versions.
Sometimes you want to compare the response time of some queries between MySQL versions and confirm there are no performance regressions, for example, before an upgrade. This framework automates a good portion of this process.
- Download mysql-5.6 and mysql-5.7 binaries for windows 64-bit (zip) and unzip in convenient folders (ex:
D:\win-mysql\mysql-advanced-5.6.34-winx64
andD:\win-mysql\mysql-advanced-5.7.16-winx64
); - Download this repo in another convenient folder;
- Edit
setenv-mysql56.bat
andsetenv-mysql57.bat
files with your correct paths; optionally editmy_5.6.ini
andmy_5.7.ini
files with your own options; - In command line, run
prepare.bat
- this will take some time, but will create the MySQL sandbox instances for you (aka initialize the datadir); - Replace the files
create-user.sql
,dump.sql
andquery.sql
files with the data and query(ies) you want to benchmark; - Run the tests with
run.bat
; - See the results will be in
mysql-win-test.txt
file; - Run any number of test cycles you want and, at the end, you can run cleanup.bat to erase the MySQL Sandboxes.