Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for setting zlib/zstd compression algorithms #487

Merged
merged 1 commit into from
May 15, 2023

Conversation

dveeden
Copy link
Contributor

@dveeden dveeden commented May 7, 2023

This allows one to select zlib or zstd.

@dveeden
Copy link
Contributor Author

dveeden commented May 7, 2023

Example:

[dvaneeden@dve-carbon sysbench]$ ./src/sysbench --mysql-host=127.0.0.1 --mysql-user=root --mysql-password=root --mysql-compression --mysql-compression-algorithms=zstd --time=60 oltp_read_only run
sysbench 1.1.0-4228c85 (using bundled LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Initializing worker threads...

Threads started!

SQL statistics:
    queries performed:
        read:                            497924
        write:                           0
        other:                           71132
        total:                           569056
    transactions:                        35566  (592.75 per sec.)
    queries:                             569056 (9483.96 per sec.)
    ignored errors:                      0      (0.00 per sec.)
    reconnects:                          0      (0.00 per sec.)

Throughput:
    events/s (eps):                      592.7473
    time elapsed:                        60.0020s
    total number of events:              35566

Latency (ms):
         min:                                    1.10
         avg:                                    1.69
         max:                                    3.56
         95th percentile:                        1.96
         sum:                                59976.50

Threads fairness:
    events (avg/stddev):           35566.0000/0.00
    execution time (avg/stddev):   59.9765/0.00

[dvaneeden@dve-carbon sysbench]$ ./src/sysbench --mysql-host=127.0.0.1 --mysql-user=root --mysql-password=root --mysql-compression --mysql-compression-algorithms=zlib --time=60 oltp_read_only run
sysbench 1.1.0-4228c85 (using bundled LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Initializing worker threads...

Threads started!

SQL statistics:
    queries performed:
        read:                            330666
        write:                           0
        other:                           47238
        total:                           377904
    transactions:                        23619  (393.63 per sec.)
    queries:                             377904 (6298.14 per sec.)
    ignored errors:                      0      (0.00 per sec.)
    reconnects:                          0      (0.00 per sec.)

Throughput:
    events/s (eps):                      393.6340
    time elapsed:                        60.0024s
    total number of events:              23619

Latency (ms):
         min:                                    1.82
         avg:                                    2.54
         max:                                   16.41
         95th percentile:                        2.91
         sum:                                59982.59

Threads fairness:
    events (avg/stddev):           23619.0000/0.00
    execution time (avg/stddev):   59.9826/0.00

[dvaneeden@dve-carbon sysbench]$ ./src/sysbench --mysql-host=127.0.0.1 --mysql-user=root --mysql-password=root --time=60 oltp_read_only run
sysbench 1.1.0-4228c85 (using bundled LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Initializing worker threads...

Threads started!

SQL statistics:
    queries performed:
        read:                            795130
        write:                           0
        other:                           113590
        total:                           908720
    transactions:                        56795  (946.57 per sec.)
    queries:                             908720 (15145.13 per sec.)
    ignored errors:                      0      (0.00 per sec.)
    reconnects:                          0      (0.00 per sec.)

Throughput:
    events/s (eps):                      946.5708
    time elapsed:                        60.0008s
    total number of events:              56795

Latency (ms):
         min:                                    0.83
         avg:                                    1.06
         max:                                    2.40
         95th percentile:                        1.30
         sum:                                59961.92

Threads fairness:
    events (avg/stddev):           56795.0000/0.00
    execution time (avg/stddev):   59.9619/0.00

@akopytov
Copy link
Owner

Thank you!

@akopytov akopytov merged commit 8e33758 into akopytov:master May 15, 2023
vaintroub added a commit to vaintroub/sysbench that referenced this pull request May 15, 2023
vaintroub added a commit to vaintroub/sysbench that referenced this pull request May 15, 2023
vaintroub added a commit to vaintroub/sysbench that referenced this pull request May 16, 2023
It was broken by "compression algorithm" pull request
akopytov#487
vaintroub added a commit to vaintroub/sysbench that referenced this pull request Jul 18, 2023
It was broken by "compression algorithm" pull request
akopytov#487

# Conflicts:
#	tests/t/help_drv_mysql.t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants