The cpu test is one of the most simple benchmarks in SysBench. In this mode each request consists in calculation of prime numbers up to a value specified by the --cpu-max-primes option. All calculations are performed using 64-bit integers. Each thread executes the requests concurrently until either the total number of requests or the total execution time exceed the limits specified with the common command line options.
|Multithreaded||30.00 s||5.08 ms||13.22 ms||787.85 ops/sec|
|Single Thread||30.00 s||1.27 ms||1.30 ms||789.90 ops/sec|
This test mode can be used to produce various kinds of file I/O workloads. At the prepare stage Sysbench
creates a specified number of files with a specified total size, then at the run stage, each thread
performs specified I/O operations on this set of files.
Sysbench fileio tests are run in synchronous mode, all operations are buffered. All tests are run with a number of threads that matches the number of vCPUs found in the instance with a minimum of 4.
|Random Read 4k (validate opt)||142.01 MiB/s||0 MiB/s||0.11 ms||0.15 ms|
|Random Read-Write 4k||55.35 MiB/s||36.90 MiB/s||0.07 ms||0.15 ms|
|Random Write 4k||0 MiB/s||116.28 MiB/s||0.06 ms||0.15 ms|
|Sequential Read 128k (validate opt)||1596 MiB/s||0 MiB/s||0.31 ms||0.34 ms|
|Sequential Write 128k||0 MiB/s||1610 MiB/s||0.14 ms||0.10 ms|
Memory allocation and transfer speed.
|Read||24.81 s||8.06 GiB/sec||8451178 ops/sec|
|Read 1MB||17.67 s||56.60 GiB/sec||57954 ops/sec|
|Write||14.81 s||6.75 GiB/sec||7081450 ops/sec|
|Write 1MB||15.98 s||25.03 GiB/sec||25630 ops/sec|