Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VPS
#!/bin/sh
set -e
export DEBIAN_FRONTEND=noninteractive
install() {
apt-get -q update
apt-get -q -y install sysbench apache2 apache2-utils mysql-server curl python
curl -Lo speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
}
header() {
echo "Starting $1 test"
echo "### $1\n" >> test.out
}
pre() {
echo "\`\`\`\n" >> test.out
}
run_tests() {
CPU_MODEL=`cat /proc/cpuinfo | grep 'model name' | head -1 | cut -d':' -f2`
CPU_CACHE=`cat /proc/cpuinfo | grep -i 'cache' | head -1 | cut -d':' -f2`
CPU_BOGOMIPS=`cat /proc/cpuinfo | grep -i 'bogomips' | head -1 | cut -d':' -f2`
CPU_CORES=`grep -c processor /proc/cpuinfo`
header "CPU info"
pre
echo "Model: $CPU_MODEL" >> test.out
echo "Cache: $CPU_CACHE" >> test.out
echo "BogoMips: $CPU_BOGOMIPS" >> test.out
echo "Cores: $CPU_CORES" >> test.out
pre
header "CPU"
pre
sysbench --verbosity=3 --test=cpu run >> test.out
pre
header "CPU x$CPU_CORES"
pre
sysbench --verbosity=3 --test=cpu --num-threads=$CPU_CORES run >> test.out
pre
header "Memory read"
pre
sysbench --verbosity=3 --test=memory run >> test.out
pre
header "Memory write"
pre
sysbench --verbosity=3 --test=memory --memory-oper=write run >> test.out
pre
header "Threads"
pre
sysbench --verbosity=3 --test=threads --num-threads=64 --thread-yields=1000 --thread-locks=4 run >> test.out
pre
header "Mutex"
pre
sysbench --verbosity=3 --test=mutex run >> test.out
pre
header "File IO"
pre
sysbench --verbosity=3 --test=fileio prepare
sysbench --verbosity=3 --test=fileio --file-test-mode=seqrd run >> test.out
sysbench --verbosity=3 --test=fileio --file-test-mode=rndrw run >> test.out
sysbench --verbosity=3 --test=fileio cleanup
pre
header "MySQL"
pre
mysql -uroot -e "CREATE DATABASE sbtest;"
sysbench --verbosity=3 --test=oltp --oltp-table-size=1000000 --mysql-user=root prepare
sysbench --verbosity=3 --test=oltp --oltp-table-size=1000000 --mysql-user=root run >> test.out
sysbench --verbosity=3 --test=oltp --oltp-table-size=1000000 --mysql-user=root cleanup
mysql -uroot -e "DROP DATABASE sbtest;"
pre
header "Apache"
pre
ab -kc 1000 -n 10000 http://127.0.0.1/ >> test.out
pre
header "Speedtest"
pre
./speedtest-cli --server 5559 >> test.out
pre
}
run() {
dir=$(mktemp -d /tmp/sysbench.XXXX)
cd $dir
install
run_tests
cat test.out 2>&1 | curl -F 'f:1=<-' ix.io
cd
rm -rf $dir
}
run

DigitalOcean S5

  • 5$
  • 1 CPU
  • 512Mb memory
  • 1T transfer
  • 20GB SSD

CPU info

Model:  Intel(R) Xeon(R) CPU E5-2650L v3 @ 1.80GHz
Cache:  30720 KB
BogoMips:  3599.99
Cores: 1

CPU

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          15.0210s
    total number of events:              10000
    total time taken by event execution: 15.0171
    per-request statistics:
         min:                                  1.47ms
         avg:                                  1.50ms
         max:                                  5.25ms
         approx.  95 percentile:               1.58ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   15.0171/0.00

CPU x1

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          15.1272s
    total number of events:              10000
    total time taken by event execution: 15.1232
    per-request statistics:
         min:                                  1.47ms
         avg:                                  1.51ms
         max:                                  2.80ms
         approx.  95 percentile:               1.65ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   15.1232/0.00

Memory read

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed: 104857600 (1092355.12 ops/sec)

102400.00 MB transferred (1066.75 MB/sec)


Test execution summary:
    total time:                          95.9922s
    total number of events:              104857600
    total time taken by event execution: 76.4842
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                  1.62ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           104857600.0000/0.00
    execution time (avg/stddev):   76.4842/0.00

Memory write

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed: 104857600 (1065046.29 ops/sec)

102400.00 MB transferred (1040.08 MB/sec)


Test execution summary:
    total time:                          98.4536s
    total number of events:              104857600
    total time taken by event execution: 77.8182
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                  1.24ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           104857600.0000/0.00
    execution time (avg/stddev):   77.8182/0.00

Threads

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 64

Threads started!

Test execution summary:
    total time:                          8.5420s
    total number of events:              10000
    total time taken by event execution: 544.8344
    per-request statistics:
         min:                                  1.17ms
         avg:                                 54.48ms
         max:                                177.24ms
         approx.  95 percentile:             106.75ms

Threads fairness:
    events (avg/stddev):           156.2500/2.26
    execution time (avg/stddev):   8.5130/0.02

Mutex

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!

Test execution summary:
    total time:                          0.0031s
    total number of events:              1
    total time taken by event execution: 0.0030
    per-request statistics:
         min:                                  2.98ms
         avg:                                  2.98ms
         max:                                  2.98ms
         approx.  95 percentile:         10000000.00ms

Threads fairness:
    events (avg/stddev):           1.0000/0.00
    execution time (avg/stddev):   0.0030/0.00

File IO

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed:  131072 Read, 0 Write, 0 Other = 131072 Total
Read 2Gb  Written 0b  Total transferred 2Gb  (713.5Mb/sec)
45663.79 Requests/sec executed

Test execution summary:
    total time:                          2.8704s
    total number of events:              131072
    total time taken by event execution: 2.8230
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.02ms
         max:                                 12.74ms
         approx.  95 percentile:               0.10ms

Threads fairness:
    events (avg/stddev):           131072.0000/0.00
    execution time (avg/stddev):   2.8230/0.00

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed:  6000 Read, 4000 Write, 12800 Other = 22800 Total
Read 93.75Mb  Written 62.5Mb  Total transferred 156.25Mb  (62.375Mb/sec)
 3992.02 Requests/sec executed

Test execution summary:
    total time:                          2.5050s
    total number of events:              10000
    total time taken by event execution: 1.0035
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.10ms
         max:                                  8.23ms
         approx.  95 percentile:               0.19ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   1.0035/0.00

MySQL


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing OLTP test.
Running mixed OLTP test
Using Special distribution (12 iterations,  1 pct of values are returned in 75 pct cases)
Using "BEGIN" for starting transactions
Using auto_inc on the id column
Maximum number of requests for OLTP test is limited to 10000
Threads started!
OLTP test statistics:
    queries performed:
        read:                            140000
        write:                           50000
        other:                           20000
        total:                           210000
    transactions:                        10000  (198.05 per sec.)
    deadlocks:                           0      (0.00 per sec.)
    read/write requests:                 190000 (3762.91 per sec.)
    other operations:                    20000  (396.10 per sec.)

Test execution summary:
    total time:                          50.4928s
    total number of events:              10000
    total time taken by event execution: 50.4052
    per-request statistics:
         min:                                  2.89ms
         avg:                                  5.04ms
         max:                                115.17ms
         approx.  95 percentile:               7.95ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   50.4052/0.00

Apache


This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)


Server Software:        Apache/2.4.18
Server Hostname:        127.0.0.1
Server Port:            80

Document Path:          /
Document Length:        11321 bytes

Concurrency Level:      1000
Time taken for tests:   2.150 seconds
Complete requests:      10000
Failed requests:        11
   (Connect: 0, Receive: 0, Length: 11, Exceptions: 0)
Keep-Alive requests:    9938
Total transferred:      116180153 bytes
HTML transferred:       113085469 bytes
Requests per second:    4651.53 [#/sec] (mean)
Time per request:       214.983 [ms] (mean)
Time per request:       0.215 [ms] (mean, across all concurrent requests)
Transfer rate:          52774.95 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   15 116.2      0    1001
Processing:     0   52 234.2      9    2090
Waiting:        0   52 234.2      9    2090
Total:          0   67 287.1      9    2143

Percentage of the requests served within a certain time (ms)
  50%      9
  66%     10
  75%     11
  80%     12
  90%     17
  95%     52
  98%   1430
  99%   1510
 100%   2143 (longest request)

Speedtest

Hosted by Orange (Paris) [477.85 km]: 14.986 ms
Testing download speed................................................................................
Download: 76.25 Mbit/s
Testing upload speed....................................................................................................
Upload: 87.04 Mbit/s
Hosted by Vodafone DE (Frankfurt) [0.00 km]: 7.037 ms
Testing download speed................................................................................
Download: 499.79 Mbit/s
Testing upload speed....................................................................................................
Upload: 353.54 Mbit/s

Scaleway C2L

  • 24€
  • 8 Dedicated x86 64bit Cores
  • 32GB memory
  • 250GB Direct SSD
  • 800Mbit/s Unmetered

CPU info


Model:  Intel(R) Atom(TM) CPU  C2750  @ 2.40GHz
Cache:  1024 KB
BogoMips:  4787.99
Cores: 8

CPU

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          17.9145s
    total number of events:              10000
    total time taken by event execution: 17.9124
    per-request statistics:
         min:                                  1.79ms
         avg:                                  1.79ms
         max:                                  2.75ms
         approx.  95 percentile:               1.79ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   17.9124/0.00

CPU x8

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 8

Threads started!
Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          2.3535s
    total number of events:              10000
    total time taken by event execution: 18.5585
    per-request statistics:
         min:                                  1.79ms
         avg:                                  1.86ms
         max:                                 43.96ms
         approx.  95 percentile:               1.81ms

Threads fairness:
    events (avg/stddev):           1250.0000/17.35
    execution time (avg/stddev):   2.3198/0.03

Memory read

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed: 104857600 (1279603.83 ops/sec)

102400.00 MB transferred (1249.61 MB/sec)


Test execution summary:
    total time:                          81.9454s
    total number of events:              104857600
    total time taken by event execution: 65.6720
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                  0.08ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           104857600.0000/0.00
    execution time (avg/stddev):   65.6720/0.00

Memory write

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed: 104857600 (1267086.63 ops/sec)

102400.00 MB transferred (1237.39 MB/sec)


Test execution summary:
    total time:                          82.7549s
    total number of events:              104857600
    total time taken by event execution: 66.4951
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                  0.08ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           104857600.0000/0.00
    execution time (avg/stddev):   66.4951/0.00

Threads

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 64

Threads started!

Test execution summary:
    total time:                          5.5746s
    total number of events:              10000
    total time taken by event execution: 355.8855
    per-request statistics:
         min:                                  0.29ms
         avg:                                 35.59ms
         max:                                356.70ms
         approx.  95 percentile:             111.35ms

Threads fairness:
    events (avg/stddev):           156.2500/21.78
    execution time (avg/stddev):   5.5607/0.01

Mutex

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!

Test execution summary:
    total time:                          0.0060s
    total number of events:              1
    total time taken by event execution: 0.0058
    per-request statistics:
         min:                                  5.79ms
         avg:                                  5.79ms
         max:                                  5.79ms
         approx.  95 percentile:         10000000.00ms

Threads fairness:
    events (avg/stddev):           1.0000/0.00
    execution time (avg/stddev):   0.0058/0.00

File IO

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed:  131072 Read, 0 Write, 0 Other = 131072 Total
Read 2Gb  Written 0b  Total transferred 2Gb  (3.1735Gb/sec)
207977.03 Requests/sec executed

Test execution summary:
    total time:                          0.6302s
    total number of events:              131072
    total time taken by event execution: 0.5975
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                  0.06ms
         approx.  95 percentile:               0.01ms

Threads fairness:
    events (avg/stddev):           131072.0000/0.00
    execution time (avg/stddev):   0.5975/0.00

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed:  6000 Read, 4000 Write, 12800 Other = 22800 Total
Read 93.75Mb  Written 62.5Mb  Total transferred 156.25Mb  (30.707Mb/sec)
 1965.26 Requests/sec executed

Test execution summary:
    total time:                          5.0884s
    total number of events:              10000
    total time taken by event execution: 0.1026
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.01ms
         max:                                  0.05ms
         approx.  95 percentile:               0.01ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   0.1026/0.00

MySQL

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing OLTP test.
Running mixed OLTP test
Using Special distribution (12 iterations,  1 pct of values are returned in 75 pct cases)
Using "BEGIN" for starting transactions
Using auto_inc on the id column
Maximum number of requests for OLTP test is limited to 10000
Threads started!
OLTP test statistics:
    queries performed:
        read:                            140000
        write:                           50000
        other:                           20000
        total:                           210000
    transactions:                        10000  (161.31 per sec.)
    deadlocks:                           0      (0.00 per sec.)
    read/write requests:                 190000 (3064.89 per sec.)
    other operations:                    20000  (322.62 per sec.)

Test execution summary:
    total time:                          61.9924s
    total number of events:              10000
    total time taken by event execution: 61.8858
    per-request statistics:
         min:                                  3.91ms
         avg:                                  6.19ms
         max:                                160.03ms
         approx.  95 percentile:               5.99ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   61.8858/0.00

Nginx

This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)


Server Software:        
Server Hostname:        127.0.0.1
Server Port:            80

Document Path:          /
Document Length:        0 bytes

Concurrency Level:      1000
Time taken for tests:   0.453 seconds
Complete requests:      10000
Failed requests:        10000
   (Connect: 0, Receive: 0, Length: 9744, Exceptions: 256)
Keep-Alive requests:    9742
Total transferred:      8370086 bytes
HTML transferred:       5963328 bytes
Requests per second:    22064.88 [#/sec] (mean)
Time per request:       45.321 [ms] (mean)
Time per request:       0.045 [ms] (mean, across all concurrent requests)
Transfer rate:          18035.64 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    4  12.1      0      53
Processing:     0   31  67.5     21     364
Waiting:        0   30  67.7     19     364
Total:          0   35  71.8     21     389

Percentage of the requests served within a certain time (ms)
  50%     21
  66%     26
  75%     27
  80%     27
  90%     68
  95%    143
  98%    384
  99%    387
 100%    389 (longest request)

Speedtest

Hosted by Orange (Paris) [1.88 km]: 3.274 ms
Testing download speed................................................................................
Download: 810.90 Mbit/s
Testing upload speed....................................................................................................
Upload: 412.79 Mbit/s

Scaleway VC1M

  • 6€
  • 4 x86 64bit Cores
  • 4GB memory
  • 200Mbit/s Unmetered
  • 100GB LSSD

CPU info


Model:  Intel(R) Atom(TM) CPU  C2750  @ 2.40GHz
Cache:  4096 KB
BogoMips:  4787.79
Cores: 4

CPU


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          18.2277s
    total number of events:              10000
    total time taken by event execution: 18.2156
    per-request statistics:
         min:                                  1.79ms
         avg:                                  1.82ms
         max:                                  5.90ms
         approx.  95 percentile:               1.89ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   18.2156/0.00

CPU x4


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 4

Threads started!
Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          4.8614s
    total number of events:              10000
    total time taken by event execution: 19.4302
    per-request statistics:
         min:                                  1.79ms
         avg:                                  1.94ms
         max:                                 21.87ms
         approx.  95 percentile:               1.89ms

Threads fairness:
    events (avg/stddev):           2500.0000/46.31
    execution time (avg/stddev):   4.8575/0.00

Memory read


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed: 104857600 (982042.66 ops/sec)

102400.00 MB transferred (959.03 MB/sec)


Test execution summary:
    total time:                          106.7750s
    total number of events:              104857600
    total time taken by event execution: 84.6082
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                 14.06ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           104857600.0000/0.00
    execution time (avg/stddev):   84.6082/0.00

Memory write


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed: 104857600 (981815.43 ops/sec)

102400.00 MB transferred (958.80 MB/sec)


Test execution summary:
    total time:                          106.7997s
    total number of events:              104857600
    total time taken by event execution: 84.6429
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                  8.78ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           104857600.0000/0.00
    execution time (avg/stddev):   84.6429/0.00

Threads


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 64

Threads started!

Test execution summary:
    total time:                          5.1411s
    total number of events:              10000
    total time taken by event execution: 326.6298
    per-request statistics:
         min:                                  0.31ms
         avg:                                 32.66ms
         max:                                876.24ms
         approx.  95 percentile:             152.70ms

Threads fairness:
    events (avg/stddev):           156.2500/31.74
    execution time (avg/stddev):   5.1036/0.02

Mutex


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!

Test execution summary:
    total time:                          0.0084s
    total number of events:              1
    total time taken by event execution: 0.0078
    per-request statistics:
         min:                                  7.81ms
         avg:                                  7.81ms
         max:                                  7.81ms
         approx.  95 percentile:         10000000.00ms

Threads fairness:
    events (avg/stddev):           1.0000/0.00
    execution time (avg/stddev):   0.0078/0.00

File IO


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed:  131072 Read, 0 Write, 0 Other = 131072 Total
Read 2Gb  Written 0b  Total transferred 2Gb  (2.1927Gb/sec)
143699.03 Requests/sec executed

Test execution summary:
    total time:                          0.9121s
    total number of events:              131072
    total time taken by event execution: 0.8662
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.01ms
         max:                                  0.21ms
         approx.  95 percentile:               0.01ms

Threads fairness:
    events (avg/stddev):           131072.0000/0.00
    execution time (avg/stddev):   0.8662/0.00

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed:  6000 Read, 4000 Write, 12800 Other = 22800 Total
Read 93.75Mb  Written 62.5Mb  Total transferred 156.25Mb  (6.7066Mb/sec)
  429.22 Requests/sec executed

Test execution summary:
    total time:                          23.2978s
    total number of events:              10000
    total time taken by event execution: 0.1355
    per-request statistics:
         min:                                  0.01ms
         avg:                                  0.01ms
         max:                                  0.24ms
         approx.  95 percentile:               0.02ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   0.1355/0.00

MySQL


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing OLTP test.
Running mixed OLTP test
Using Special distribution (12 iterations,  1 pct of values are returned in 75 pct cases)
Using "BEGIN" for starting transactions
Using auto_inc on the id column
Maximum number of requests for OLTP test is limited to 10000
Threads started!
OLTP test statistics:
    queries performed:
        read:                            140000
        write:                           50000
        other:                           20000
        total:                           210000
    transactions:                        10000  (43.69 per sec.)
    deadlocks:                           0      (0.00 per sec.)
    read/write requests:                 190000 (830.18 per sec.)
    other operations:                    20000  (87.39 per sec.)

Test execution summary:
    total time:                          228.8660s
    total number of events:              10000
    total time taken by event execution: 228.7130
    per-request statistics:
         min:                                 10.04ms
         avg:                                 22.87ms
         max:                                144.14ms
         approx.  95 percentile:              42.38ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   228.7130/0.00

Apache


This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)


Server Software:        Apache/2.4.18
Server Hostname:        127.0.0.1
Server Port:            80

Document Path:          /
Document Length:        11321 bytes

Concurrency Level:      1000
Time taken for tests:   10.632 seconds
Complete requests:      10000
Failed requests:        1720
   (Connect: 0, Receive: 0, Length: 1720, Exceptions: 0)
Keep-Alive requests:    8283
Total transferred:      96341440 bytes
HTML transferred:       93771843 bytes
Requests per second:    940.53 [#/sec] (mean)
Time per request:       1063.225 [ms] (mean)
Time per request:       1.063 [ms] (mean, across all concurrent requests)
Transfer rate:          8848.87 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   86 399.1      0    3035
Processing:     0  466 1308.6     68    8954
Waiting:        0  327 1053.2     61    8954
Total:          0  552 1530.4     69    9992

Percentage of the requests served within a certain time (ms)
  50%     69
  66%    103
  75%    148
  80%    282
  90%   1034
  95%   4926
  98%   5503
  99%   9738
 100%   9992 (longest request)

Speedtest

Hosted by Orange (Paris) [1.88 km]: 4.751 ms
Testing download speed................................................................................
Download: 679.49 Mbit/s
Testing upload speed....................................................................................................
Upload: 151.57 Mbit/s

Scaleway VC1S

  • 3€
  • 2 x86 64bit Cores
  • 2GB memory
  • 200Mbit/s Unmetered
  • 50GB LSSD

CPU info


Model:  Intel(R) Atom(TM) CPU  C2750  @ 2.40GHz
Cache:  1024 KB
BogoMips:  4787.80
Cores: 2

CPU


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          18.0572s
    total number of events:              10000
    total time taken by event execution: 18.0537
    per-request statistics:
         min:                                  1.79ms
         avg:                                  1.81ms
         max:                                  5.47ms
         approx.  95 percentile:               1.84ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   18.0537/0.00

CPU x2


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 2

Threads started!
Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          9.0211s
    total number of events:              10000
    total time taken by event execution: 18.0354
    per-request statistics:
         min:                                  1.79ms
         avg:                                  1.80ms
         max:                                  6.93ms
         approx.  95 percentile:               1.83ms

Threads fairness:
    events (avg/stddev):           5000.0000/5.00
    execution time (avg/stddev):   9.0177/0.00

Memory read


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed: 104857600 (999629.81 ops/sec)

102400.00 MB transferred (976.20 MB/sec)


Test execution summary:
    total time:                          104.8964s
    total number of events:              104857600
    total time taken by event execution: 83.1551
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                  0.56ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           104857600.0000/0.00
    execution time (avg/stddev):   83.1551/0.00

Memory write


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed: 104857600 (999766.88 ops/sec)

102400.00 MB transferred (976.33 MB/sec)


Test execution summary:
    total time:                          104.8821s
    total number of events:              104857600
    total time taken by event execution: 83.1519
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.00ms
         max:                                  0.15ms
         approx.  95 percentile:               0.00ms

Threads fairness:
    events (avg/stddev):           104857600.0000/0.00
    execution time (avg/stddev):   83.1519/0.00

Threads


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 64

Threads started!

Test execution summary:
    total time:                          12.5492s
    total number of events:              10000
    total time taken by event execution: 799.8035
    per-request statistics:
         min:                                  0.31ms
         avg:                                 79.98ms
         max:                                442.55ms
         approx.  95 percentile:             216.16ms

Threads fairness:
    events (avg/stddev):           156.2500/7.09
    execution time (avg/stddev):   12.4969/0.03

Mutex


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!

Test execution summary:
    total time:                          0.0072s
    total number of events:              1
    total time taken by event execution: 0.0068
    per-request statistics:
         min:                                  6.78ms
         avg:                                  6.78ms
         max:                                  6.78ms
         approx.  95 percentile:         10000000.00ms

Threads fairness:
    events (avg/stddev):           1.0000/0.00
    execution time (avg/stddev):   0.0068/0.00

File IO


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed:  131072 Read, 0 Write, 0 Other = 131072 Total
Read 2Gb  Written 0b  Total transferred 2Gb  (730.25Mb/sec)
46736.03 Requests/sec executed

Test execution summary:
    total time:                          2.8045s
    total number of events:              131072
    total time taken by event execution: 2.7536
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.02ms
         max:                                  5.00ms
         approx.  95 percentile:               0.11ms

Threads fairness:
    events (avg/stddev):           131072.0000/0.00
    execution time (avg/stddev):   2.7536/0.00

sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Threads started!
Operations performed:  6000 Read, 4000 Write, 12800 Other = 22800 Total
Read 93.75Mb  Written 62.5Mb  Total transferred 156.25Mb  (9.0051Mb/sec)
  576.33 Requests/sec executed

Test execution summary:
    total time:                          17.3512s
    total number of events:              10000
    total time taken by event execution: 0.4474
    per-request statistics:
         min:                                  0.01ms
         avg:                                  0.04ms
         max:                                  0.76ms
         approx.  95 percentile:               0.14ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   0.4474/0.00

MySQL


sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing OLTP test.
Running mixed OLTP test
Using Special distribution (12 iterations,  1 pct of values are returned in 75 pct cases)
Using "BEGIN" for starting transactions
Using auto_inc on the id column
Maximum number of requests for OLTP test is limited to 10000
Threads started!
OLTP test statistics:
    queries performed:
        read:                            140000
        write:                           50000
        other:                           20000
        total:                           210000
    transactions:                        10000  (68.38 per sec.)
    deadlocks:                           0      (0.00 per sec.)
    read/write requests:                 190000 (1299.28 per sec.)
    other operations:                    20000  (136.77 per sec.)

Test execution summary:
    total time:                          146.2347s
    total number of events:              10000
    total time taken by event execution: 146.1000
    per-request statistics:
         min:                                  9.87ms
         avg:                                 14.61ms
         max:                                 84.03ms
         approx.  95 percentile:              18.53ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   146.1000/0.00

Apache


This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)


Server Software:        Apache/2.4.18
Server Hostname:        127.0.0.1
Server Port:            80

Document Path:          /
Document Length:        11321 bytes

Concurrency Level:      1000
Time taken for tests:   6.705 seconds
Complete requests:      10000
Failed requests:        659
   (Connect: 0, Receive: 0, Length: 659, Exceptions: 0)
Keep-Alive requests:    9368
Total transferred:      109517058 bytes
HTML transferred:       106591036 bytes
Requests per second:    1491.42 [#/sec] (mean)
Time per request:       670.500 [ms] (mean)
Time per request:       0.671 [ms] (mean, across all concurrent requests)
Transfer rate:          15950.81 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0   21 137.5      0    1030
Processing:     0  197 791.4     45    4935
Waiting:        0   48 124.8     22    1003
Total:          0  218 810.8     45    4935

Percentage of the requests served within a certain time (ms)
  50%     45
  66%     50
  75%     53
  80%     56
  90%     91
  95%    980
  98%   4922
  99%   4929
 100%   4935 (longest request)

Speedtest

Hosted by Orange (Paris) [1.88 km]: 4.308 ms
Testing download speed................................................................................
Download: 847.71 Mbit/s
Testing upload speed....................................................................................................
Upload: 249.44 Mbit/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment