Skip to content

Instantly share code, notes, and snippets.

@contribu
Created October 1, 2018 20:54
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 contribu/efb9f4a7fde59d20db07c2795aece7c0 to your computer and use it in GitHub Desktop.
Save contribu/efb9f4a7fde59d20db07c2795aece7c0 to your computer and use it in GitHub Desktop.
メモリベンチマーク
sysbench --test=memory run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: write
Memory scope type: global
Threads started!
Done.
Operations performed: 104857600 (2711900.57 ops/sec)
102400.00 MB transferred (2648.34 MB/sec)
Test execution summary:
total time: 38.6657s
total number of events: 104857600
total time taken by event execution: 30.9243
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 2.79ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 104857600.0000/0.00
execution time (avg/stddev): 30.9243/0.00
sysbench --test=memory --num-threads=12 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 12
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: write
Memory scope type: global
Threads started!
Done.
Operations performed: 104857600 (2922417.02 ops/sec)
102400.00 MB transferred (2853.92 MB/sec)
Test execution summary:
total time: 35.8804s
total number of events: 104857600
total time taken by event execution: 227.6331
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 24.69ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 8738133.3333/96645.01
execution time (avg/stddev): 18.9694/0.08
sysbench --test=memory --num-threads=2 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 2
Doing memory operations speed test
Memory block size: 1K
Memory transfer size: 102400M
Memory operations type: write
Memory scope type: global
Threads started!
Done.
Operations performed: 104857600 (3287886.62 ops/sec)
102400.00 MB transferred (3210.83 MB/sec)
Test execution summary:
total time: 31.8921s
total number of events: 104857600
total time taken by event execution: 45.2529
per-request statistics:
min: 0.00ms
avg: 0.00ms
max: 13.94ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 52428800.0000/530162.00
execution time (avg/stddev): 22.6264/0.55
sysbench --test=memory run
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
sysbench 1.0.15 (using bundled LuaJIT 2.1.0-beta2)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Running memory speed test with the following options:
block size: 1KiB
total size: 102400MiB
operation: write
scope: global
Initializing worker threads...
Threads started!
Total operations: 26163020 (2615825.92 per second)
25549.82 MiB transferred (2554.52 MiB/sec)
General statistics:
total time: 10.0001s
total number of events: 26163020
Latency (ms):
min: 0.00
avg: 0.00
max: 30.11
95th percentile: 0.00
sum: 3676.19
Threads fairness:
events (avg/stddev): 26163020.0000/0.00
execution time (avg/stddev): 3.6762/0.00
sysbench --test=memory --num-threads=4 run
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
WARNING: --num-threads is deprecated, use --threads instead
sysbench 1.0.15 (using bundled LuaJIT 2.1.0-beta2)
Running the test with following options:
Number of threads: 4
Initializing random number generator from current time
Running memory speed test with the following options:
block size: 1KiB
total size: 102400MiB
operation: write
scope: global
Initializing worker threads...
Threads started!
Total operations: 65458813 (6544605.10 per second)
63924.62 MiB transferred (6391.22 MiB/sec)
General statistics:
total time: 10.0001s
total number of events: 65458813
Latency (ms):
min: 0.00
avg: 0.00
max: 65.07
95th percentile: 0.00
sum: 16228.33
Threads fairness:
events (avg/stddev): 16364703.2500/11782.26
execution time (avg/stddev): 4.0571/0.04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment