Skip to content

Instantly share code, notes, and snippets.

@spuyet
Created February 6, 2019 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spuyet/b43c5258bedda772bb1280d14479914b to your computer and use it in GitHub Desktop.
Save spuyet/b43c5258bedda772bb1280d14479914b to your computer and use it in GitHub Desktop.
AWS t2.micro benchmark
$ sysbench cpu --cpu-max-prime=20000 --time=0 --events=10000 run
sysbench 1.0.11 (using system LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Prime numbers limit: 20000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 337.45
General statistics:
total time: 29.6323s
total number of events: 10000
Latency (ms):
min: 2.66
avg: 2.96
max: 9.88
95th percentile: 3.07
sum: 29622.34
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 29.6223/0.00
$ sysbench cpu --cpu-max-prime=20000 --time=0 --events=10000 --num-threads=4 run
WARNING: --num-threads is deprecated, use --threads instead
sysbench 1.0.11 (using system LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 4
Initializing random number generator from current time
Prime numbers limit: 20000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 337.25
General statistics:
total time: 29.6496s
total number of events: 10000
Latency (ms):
min: 2.66
avg: 11.85
max: 35.15
95th percentile: 15.00
sum: 118532.67
Threads fairness:
events (avg/stddev): 2500.0000/0.71
execution time (avg/stddev): 29.6332/0.01
$ sysbench fileio --file-total-size=10G --file-test-mode=rndrw --time=30 --max-requests=0 run
sysbench 1.0.11 (using system LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Extra file open flags: 0
128 files, 80MiB each
10GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...
Threads started!
File operations:
reads/s: 694.30
writes/s: 462.85
fsyncs/s: 1480.38
Throughput:
read, MiB/s: 10.85
written, MiB/s: 7.23
General statistics:
total time: 30.0001s
total number of events: 79134
Latency (ms):
min: 0.00
avg: 0.38
max: 38.67
95th percentile: 1.01
sum: 29891.43
Threads fairness:
events (avg/stddev): 79134.0000/0.00
execution time (avg/stddev): 29.8914/0.00
@spuyet
Copy link
Author

spuyet commented Feb 6, 2019

CPU: 1 x Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment