Skip to main content

Sysbench benchmark results

This section presents database performance benchmark results conducted using the Sysbench tool, providing reference information about the processing capabilities of database engines across different resource configurations (flavors).

Benchmark results are for reference only and do not guarantee actual performance.

1. Introduction to Sysbench benchmark

Purpose

Sysbench benchmark is used to:

  • Evaluate the OLTP (Read/Write) processing performance of database engines.
  • Observe the degree of performance improvement when increasing CPU and RAM resources.
  • Provide reference data for users to select appropriate configurations.

Database engines benchmarked

The database engines benchmarked in this document include: PostgreSQL, MySQL, and MariaDB.

Measurement metrics

Benchmark results include the following key metrics:

  • Sysbench Read: Total number of read queries executed during the benchmark.
  • Sysbench Write: Total number of write queries executed during the benchmark.
  • QPS (Queries Per Second): Average number of queries processed per second.
  • TPS (Transactions Per Second): Average number of complete transactions per second.

QPS and TPS metrics are used as the basis for evaluating overall system performance. Higher QPS and TPS values indicate better system throughput.

2. Benchmark results by database engine

2.1. PostgreSQL

Test environment:

ParameterValue
Benchmark toolSysbench (OLTP Read/Write)
Number of tables64
Records per table1,000,000
Workload typeRead/Write
Number of threadsConfigured per flavor
PostgreSQL versionPostgreSQL 17

Results:

Flavor (vCPU/RAM)ThreadsSysbench ReadSysbench WriteQPSTPS
2C4G642,595,600741,5906,177.66308.88
2C8G642,481,276708,9295,905.53295.27
4C8G643,189,018911,1347,589.71379.48
8C16G644,829,2861,379,73811,496.20574.79
8C32G645,679,8421,622,73213,519.46675.94
16C32G646,448,0361,842,19915,350.46767.49
16C64G646,926,9481,979,03116,489.02824.41

2.2. MySQL

Test environment:

ParameterValue
Benchmark toolSysbench (OLTP Read/Write)
Number of tables64
Records per table1,000,000
Workload typeRead/Write
Number of threadsConfigured per flavor
MySQL versionMySQL 8.0.42

Results:

Flavor (vCPU/RAM)ThreadsSysbench ReadSysbench WriteQPSTPS
4C8G166,814,5001,947,00016,224.39811.22
8C16G329,748,1442,785,18423,209.291,160.46
8C32G329,423,8342,692,52422,430.671,121.53
16C32G649,786,2382,796,06823,289.481,164.47

2.3. MariaDB

Test environment:

ParameterValue
Benchmark toolSysbench (OLTP Read/Write)
Number of tables64
Records per table1,000,000
Workload typeRead/Write
Number of threadsConfigured per flavor
MariaDB versionMariaDB 8.0.42

Results:

Flavor (vCPU/RAM)ThreadsSysbench ReadSysbench WriteQPSTPS
4C8G1610,573,5142,111,34125,174.341,258.72
8C16G328,923,2362,094,62821,245.251,062.26
8C32G328,491,1822,086,38820,216.521,010.83
16C32G6410,267,2082,568,03224,444.581,222.23
16C64G6410,789,8842,719,24125,688.301,284.42

3. Observations & recommendations

  • Increasing CPU and RAM generally improves throughput.
  • Each database engine has different scaling characteristics.
  • At higher configurations, performance gains may slow down depending on workload and system limits.

Important notes:

  • Benchmark results depend on workload and are for reference only.
  • Actual performance may vary depending on:
    • Application workload characteristics.
    • Database schema and indexes.
    • Read/write ratio.
    • Storage and network configuration.

Users should perform benchmarks with actual workloads before deploying production environments.

Recommendation:

Use benchmark results as reference data when selecting a database engine and resource configuration. To achieve optimal performance, test with your application's actual workload.