forked from akopytov/sysbench
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run oltp against MySQL 8.0
- Loading branch information
Showing
1 changed file
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
mysql-version: [mysql-8.0, mariadb-10.6, mariadb-11.1] | ||
runs-on: ${{ matrix.os }} | ||
name: Build on ${{ matrix.os }} | ||
name: Test with ${{ matrix.distro }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -19,3 +20,30 @@ jobs: | |
run: .\src\sysbench.exe --version | ||
- name: Sysbench help | ||
run: .\src\sysbench.exe --help | ||
- name: test_install | ||
run: | | ||
cmake --install . --prefix install_dir | ||
echo "$pwd\install_dir\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
cat $env:GITHUB_PATH | ||
- name: actions-setup-mysql | ||
uses: shogo82148/[email protected] | ||
with: | ||
distribution: ${{ matrix.distro }} | ||
my-cnf: | | ||
innodb_log_file_size=2G | ||
innodb_buffer_pool_size=512MB | ||
max_allowed_packet=16MB | ||
skip-log-bin | ||
enable-named-pipe | ||
socket=MySQL | ||
- name: create database sbtest | ||
run: mysql -uroot -e "create database sbtest" | ||
- name: sysbench oltp_read_write prepare | ||
run: sysbench oltp_read_write --mysql-user=root --table-size=100000 prepare | ||
- name: sysbench oltp_point_select run | ||
run: sysbench oltp_point_select --mysql-user=root --mysql-socket=MySQL --time=30 --table-size=100000 --threads=4 --report-interval=1 --histogram run | ||
- name: sysbench oltp_update_index run | ||
run: sysbench oltp_update_index --mysql-user=root --mysql-socket=MySQL --time=30 --table-size=100000 --threads=40 --report-interval=1 --histogram run | ||
- name: sysbench oltp cleanup | ||
run: sysbench oltp_read_write --mysql-user=root cleanup | ||
|