<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Benchmark_Your_System</id>
	<title>Benchmark Your System - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Benchmark_Your_System"/>
	<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Benchmark_Your_System&amp;action=history"/>
	<updated>2026-05-04T01:15:52Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=Benchmark_Your_System&amp;diff=535&amp;oldid=prev</id>
		<title>Sol в 19:06, 28 апреля 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Benchmark_Your_System&amp;diff=535&amp;oldid=prev"/>
		<updated>2017-04-28T19:06:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия 19:06, 28 апреля 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot; &gt;Строка 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;4 ядра&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;4 ядра&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sysbench --threads=4 --test=cpu --cpu-max-prime=20000 run&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sysbench -&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-num&lt;/ins&gt;-threads=4 --test=cpu --cpu-max-prime=20000 run&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  root@server1:~# sysbench --test=cpu --cpu-max-prime=20000 run&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  root@server1:~# sysbench --test=cpu --cpu-max-prime=20000 run&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=Benchmark_Your_System&amp;diff=106&amp;oldid=prev</id>
		<title>Sol: Новая страница: «Sysbench is a benchmark suite which allows you to quickly get an impression about system performance which is important if you plan to run a database under intens…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Benchmark_Your_System&amp;diff=106&amp;oldid=prev"/>
		<updated>2015-04-21T13:29:18Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «Sysbench is a benchmark suite which allows you to quickly get an impression about system performance which is important if you plan to run a database under intens…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sysbench is a benchmark suite which allows you to quickly get an impression about system performance which is important if you plan to run a database under intensive load. This article explains how to benchmark your CPU, file IO, and MySQL performance with sysbench. &lt;br /&gt;
&lt;br /&gt;
== Installing sysbench ==&lt;br /&gt;
&lt;br /&gt;
On Debian/Ubuntu, sysbench can be installed as follows:&lt;br /&gt;
&lt;br /&gt;
 apt-get install sysbench&lt;br /&gt;
&lt;br /&gt;
Take a look at&lt;br /&gt;
&lt;br /&gt;
 man sysbench&lt;br /&gt;
&lt;br /&gt;
== CPU Benchmark ==&lt;br /&gt;
&lt;br /&gt;
You can benchmark your CPU performance as follows:&lt;br /&gt;
&lt;br /&gt;
 sysbench --test=cpu --cpu-max-prime=20000 run&lt;br /&gt;
&lt;br /&gt;
4 ядра&lt;br /&gt;
&lt;br /&gt;
 sysbench --threads=4 --test=cpu --cpu-max-prime=20000 run&lt;br /&gt;
&lt;br /&gt;
 root@server1:~# sysbench --test=cpu --cpu-max-prime=20000 run&lt;br /&gt;
 sysbench 0.4.12:  multi-threaded system evaluation benchmark&lt;br /&gt;
 &lt;br /&gt;
 Running the test with following options:&lt;br /&gt;
 Number of threads: 1&lt;br /&gt;
 &lt;br /&gt;
 Doing CPU performance benchmark&lt;br /&gt;
 &lt;br /&gt;
 Threads started!&lt;br /&gt;
 Done.&lt;br /&gt;
 &lt;br /&gt;
 Maximum prime number checked in CPU test: 20000&lt;br /&gt;
  &lt;br /&gt;
 &lt;br /&gt;
 Test execution summary:&lt;br /&gt;
    total time:                          23.8724s&lt;br /&gt;
    total number of events:              10000&lt;br /&gt;
    total time taken by event execution: 23.8716&lt;br /&gt;
    per-request statistics:&lt;br /&gt;
         min:                                  2.31ms&lt;br /&gt;
         avg:                                  2.39ms&lt;br /&gt;
         max:                                  6.39ms&lt;br /&gt;
         approx.  95 percentile:               2.44ms&lt;br /&gt;
 &lt;br /&gt;
 Threads fairness:&lt;br /&gt;
    events (avg/stddev):           10000.0000/0.00&lt;br /&gt;
    execution time (avg/stddev):   23.8716/0.00&lt;br /&gt;
 root@server1:~#&lt;br /&gt;
&lt;br /&gt;
You see a lot of numbers, the most important of it is the total time:&lt;br /&gt;
&lt;br /&gt;
    total time:                          23.8724s&lt;br /&gt;
&lt;br /&gt;
Of course, you must compare benchmarks across multiple systems to know what these numbers are worth.&lt;br /&gt;
&lt;br /&gt;
== File IO Benchmark ==&lt;br /&gt;
&lt;br /&gt;
To measure file IO performance, we first need to create a test file that is much bigger than your RAM (because otherwise the system will use RAM for caching which tampers with the benchmark results) - 150GB is a good value:&lt;br /&gt;
&lt;br /&gt;
 sysbench --test=fileio --file-total-size=150G prepare&lt;br /&gt;
&lt;br /&gt;
Afterwards, we can run the benchmark:&lt;br /&gt;
&lt;br /&gt;
 sysbench --test=fileio --file-total-size=150G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run&lt;br /&gt;
&lt;br /&gt;
 root@server1:~# sysbench --test=fileio --file-total-size=150G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run&lt;br /&gt;
 sysbench: /usr/lib/libmysqlclient.so.18: no version information available (required by sysbench)&lt;br /&gt;
 sysbench 0.4.12:  multi-threaded system evaluation benchmark&lt;br /&gt;
 &lt;br /&gt;
 Running the test with following options:&lt;br /&gt;
 Number of threads: 1&lt;br /&gt;
 Initializing random number generator from timer.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Extra file open flags: 0&lt;br /&gt;
 128 files, 1.1719Gb each&lt;br /&gt;
 150Gb total file size&lt;br /&gt;
 Block size 16Kb&lt;br /&gt;
 Number of random requests for random IO: 0&lt;br /&gt;
 Read/Write ratio for combined random IO test: 1.50&lt;br /&gt;
 Periodic FSYNC enabled, calling fsync() each 100 requests.&lt;br /&gt;
 Calling fsync() at the end of test, Enabled.&lt;br /&gt;
 Using synchronous I/O mode&lt;br /&gt;
 Doing random r/w test&lt;br /&gt;
 Threads started!&lt;br /&gt;
 Time limit exceeded, exiting...&lt;br /&gt;
 Done.&lt;br /&gt;
 &lt;br /&gt;
 Operations performed:  600 Read, 400 Write, 1186 Other = 2186 Total&lt;br /&gt;
 Read 9.375Mb  Written 6.25Mb  Total transferred 15.625Mb  (53.316Kb/sec)&lt;br /&gt;
    3.33 Requests/sec executed&lt;br /&gt;
 &lt;br /&gt;
 Test execution summary:&lt;br /&gt;
    total time:                          300.0975s&lt;br /&gt;
    total number of events:              1000&lt;br /&gt;
    total time taken by event execution: 158.7611&lt;br /&gt;
    per-request statistics:&lt;br /&gt;
         min:                                  0.01ms&lt;br /&gt;
         avg:                                158.76ms&lt;br /&gt;
         max:                               2596.96ms&lt;br /&gt;
         approx.  95 percentile:             482.29ms&lt;br /&gt;
&lt;br /&gt;
 Threads fairness:&lt;br /&gt;
    events (avg/stddev):           1000.0000/0.00&lt;br /&gt;
    execution time (avg/stddev):   158.7611/0.00&lt;br /&gt;
 &lt;br /&gt;
 root@server1:~#&lt;br /&gt;
&lt;br /&gt;
The important number is the Kb/sec value:&lt;br /&gt;
&lt;br /&gt;
 Read 9.375Mb  Written 6.25Mb  Total transferred 15.625Mb  (53.316Kb/sec)&lt;br /&gt;
&lt;br /&gt;
After the benchmark, you can delete the 150GB test file from the system:&lt;br /&gt;
&lt;br /&gt;
 sysbench --test=fileio --file-total-size=150G cleanup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MySQL Benchmark ==&lt;br /&gt;
&lt;br /&gt;
To measure MySQL performance, we first create a test table in the database test with 1,000,000 rows of data:&lt;br /&gt;
&lt;br /&gt;
 sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-password=yourrootsqlpassword prepare&lt;br /&gt;
&lt;br /&gt;
 root@server1:~# sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-password=yourrootsqlpassword prepare&lt;br /&gt;
 sysbench 0.4.12: multi-threaded system evaluation benchmark&lt;br /&gt;
 &lt;br /&gt;
 No DB drivers specified, using mysql&lt;br /&gt;
 Creating table 'sbtest'...&lt;br /&gt;
 Creating 1000000 records in table 'sbtest'...&lt;br /&gt;
 root@server1:~#&lt;br /&gt;
&lt;br /&gt;
Afterwards, you can run the MySQL benchmark as follows:&lt;br /&gt;
&lt;br /&gt;
 sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-password=yourrootsqlpassword --max-time=60 --oltp-read-only=on --max-requests=0 --num-threads=8 run&lt;br /&gt;
&lt;br /&gt;
 root@server1:~# sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=test --mysql-user=root --mysql-password=yourrootsqlpassword --max-time=60 --oltp-read-only=on --max-requests=0 --num-threads=8 run&lt;br /&gt;
 sysbench 0.4.12:  multi-threaded system evaluation benchmark&lt;br /&gt;
 &lt;br /&gt;
 No DB drivers specified, using mysql&lt;br /&gt;
 Running the test with following options:&lt;br /&gt;
 Number of threads: 8&lt;br /&gt;
 &lt;br /&gt;
 Doing OLTP test.&lt;br /&gt;
 Running mixed OLTP test&lt;br /&gt;
 Doing read-only test&lt;br /&gt;
 Using Special distribution (12 iterations,  1 pct of values are returned in 75 pct cases)&lt;br /&gt;
 Using &amp;quot;BEGIN&amp;quot; for starting transactions&lt;br /&gt;
 Using auto_inc on the id column&lt;br /&gt;
 Threads started!&lt;br /&gt;
 Time limit exceeded, exiting...&lt;br /&gt;
 (last message repeated 7 times)&lt;br /&gt;
 Done.&lt;br /&gt;
 &lt;br /&gt;
 OLTP test statistics:&lt;br /&gt;
    queries performed:&lt;br /&gt;
        read:                            2253860&lt;br /&gt;
        write:                           0&lt;br /&gt;
        other:                           321980&lt;br /&gt;
        total:                           2575840&lt;br /&gt;
    transactions:                        160990 (2683.06 per sec.)&lt;br /&gt;
    deadlocks:                           0      (0.00 per sec.)&lt;br /&gt;
    read/write requests:                 2253860 (37562.81 per sec.)&lt;br /&gt;
    other operations:                    321980 (5366.12 per sec.)&lt;br /&gt;
 &lt;br /&gt;
 Test execution summary:&lt;br /&gt;
    total time:                          60.0024s&lt;br /&gt;
    total number of events:              160990&lt;br /&gt;
    total time taken by event execution: 479.3419&lt;br /&gt;
    per-request statistics:&lt;br /&gt;
         min:                                  0.81ms&lt;br /&gt;
         avg:                                  2.98ms&lt;br /&gt;
         max:                               3283.40ms&lt;br /&gt;
         approx.  95 percentile:               4.62ms&lt;br /&gt;
 &lt;br /&gt;
 Threads fairness:&lt;br /&gt;
    events (avg/stddev):           20123.7500/63.52&lt;br /&gt;
    execution time (avg/stddev):   59.9177/0.00&lt;br /&gt;
 &lt;br /&gt;
 root@server1:~#&lt;br /&gt;
&lt;br /&gt;
The important number is the transactions per second value:&lt;br /&gt;
&lt;br /&gt;
    transactions:                        160990 (2683.06 per sec.)&lt;br /&gt;
&lt;br /&gt;
To clean up the system afterwards (i.e., remove the test table), run:&lt;br /&gt;
&lt;br /&gt;
 sysbench --test=oltp --mysql-db=test --mysql-user=root --mysql-password=yourrootsqlpassword cleanup&lt;br /&gt;
[[Категория:Linux]]&lt;/div&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
</feed>