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||2.96 ms||3.30 ms||1351 ops/sec|
|Single Thread||30.00 s||2.90 ms||3.02 ms||344.93 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)||34.70 MiB/s||0 MiB/s||0.45 ms||0.99 ms|
|Random Read-Write 4k||17.24 MiB/s||11.49 MiB/s||0.24 ms||0.92 ms|
|Random Write 4k||0 MiB/s||37.60 MiB/s||0.18 ms||0.63 ms|
|Sequential Read 128k (validate opt)||230.97 MiB/s||0 MiB/s||2.16 ms||3.55 ms|
|Sequential Write 128k||0 MiB/s||852.43 MiB/s||0.26 ms||0.30 ms|
Memory allocation and transfer speed.
|Read||11.85 s||16.87 GiB/sec||17690252 ops/sec|
|Read 1MB||14.90 s||67.12 GiB/sec||68734 ops/sec|
|Write||23.57 s||4.24 GiB/sec||4447509 ops/sec|
|Write 1MB||11.16 s||35.84 GiB/sec||36701 ops/sec|