{"id":4320,"date":"2016-08-21T15:47:56","date_gmt":"2016-08-21T14:47:56","guid":{"rendered":"https:\/\/stevepedwards.today\/DebianAdmin\/?p=4320"},"modified":"2016-08-21T15:47:56","modified_gmt":"2016-08-21T14:47:56","slug":"sysbench-simulated-database-testing","status":"publish","type":"post","link":"https:\/\/stevepedwards.today\/DebianAdmin\/sysbench-simulated-database-testing\/","title":{"rendered":"Sysbench &#8211; Simulated Database Testing"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_4320\" class=\"pvc_stats all  \" data-element-id=\"4320\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p><span style=\"color: #0000ff;\">man sysbench<\/span><\/p>\n<p><span style=\"color: #ff0000;\">oltp<\/span><br \/>\n<span style=\"color: #ff0000;\"> This test mode was written to benchmark a real database performance. At the prepare<\/span><br \/>\n<span style=\"color: #ff0000;\"> stage the following table is created in the specified database (sbtest by default):<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Example usage: <span style=\"color: #ffffff;\"><strong>(THESE DON'T WORK AS IS - A DB NEEDS CREATING FIRST - SEE BELOW)<\/strong><\/span><\/span><\/p>\n<p><strong><span style=\"color: #ff0000;\">$ sysbench --test=oltp --mysql-table-type=myisam --oltp-table-size=1000000 --mysql-socket=\/tmp\/mysql.sock prepare<\/span><\/strong><br \/>\n<strong> <span style=\"color: #ff0000;\"> $ sysbench --num-threads=16 --max-requests=100000 --test=oltp --oltp-table-size=1000000 --mysql-socket=\/tmp\/mysql.sock --oltp-read-only run<\/span><\/strong><\/p>\n<p><span style=\"color: #ff0000;\">The first command will create a MyISAM table 'sbtest' in a database 'sbtest' on a MySQL<\/span><br \/>\n<span style=\"color: #ff0000;\"> server using \/tmp\/mysql.sock socket, then fill this table with 1M records. The second<\/span><br \/>\n<span style=\"color: #ff0000;\"> command will run the actual benchmark with 16 client threads, limiting the total number<\/span><br \/>\n<span style=\"color: #ff0000;\"> of request by 100,000.<\/span><\/p>\n<p><strong><span style=\"color: #ff0000;\"> --mysql-db<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"> MySQL database name. Note SysBench will not automatically create this database. You\u00a0<\/span><\/strong><strong><span style=\"color: #ff0000;\">should create it manually and grant the appropriate privileges to a user which will\u00a0<\/span><\/strong><strong><span style=\"color: #ff0000;\">be used to access the test table. (default: sbtest)<\/span><\/strong><\/p>\n<p><span style=\"color: #ff0000;\">AUTHOR<\/span><br \/>\n<span style=\"color: #ff0000;\"> Alexey Kopytov &lt;kaamos@users.sourceforge.net&gt;<\/span><br \/>\n<span style=\"color: #ff0000;\"> Author.<\/span><\/p>\n<p>First you have to install mysql:<\/p>\n<p><span style=\"color: #0000ff;\">sudo apt-get install mysql-server-5.5<\/span><\/p>\n<p>Now create a db and grant all privileges to a user. Log in to mysql as root:<\/p>\n<p><span style=\"color: #0000ff;\">su root<\/span><\/p>\n<p><span style=\"color: #0000ff;\">mysql -u root -p<\/span><\/p>\n<p><span style=\"color: #ff0000;\">mysql&gt; <span style=\"color: #0000ff;\">show databases ;<\/span><\/span><br \/>\n<span style=\"color: #ff0000;\">+------+<\/span><br \/>\n<span style=\"color: #ff0000;\">| Database |<\/span><br \/>\n<span style=\"color: #ff0000;\">+------+<\/span><br \/>\n<span style=\"color: #ff0000;\">| information_schema |<\/span><br \/>\n<span style=\"color: #ff0000;\">| mysql |<\/span><br \/>\n<span style=\"color: #ff0000;\">| performance_schema |<\/span><br \/>\n<span style=\"color: #ff0000;\">+------+<\/span><br \/>\n<span style=\"color: #ff0000;\">4 rows in set (0.06 sec)<\/span><\/p>\n<p><span style=\"color: #0000ff;\">create database sbtest ;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">mysql&gt;<span style=\"color: #0000ff;\"> show databases ;<\/span><\/span><br \/>\n<span style=\"color: #ff0000;\">+------+<\/span><br \/>\n<span style=\"color: #ff0000;\">| Database |<\/span><br \/>\n<span style=\"color: #ff0000;\">+------+<\/span><br \/>\n<span style=\"color: #ff0000;\">| information_schema |<\/span><br \/>\n<span style=\"color: #ff0000;\">| mysql |<\/span><br \/>\n<span style=\"color: #ff0000;\">| performance_schema |<\/span><br \/>\n<span style=\"color: #ff0000;\">| sbtest |<\/span><br \/>\n<span style=\"color: #ff0000;\">+------+<\/span><br \/>\n<span style=\"color: #ff0000;\">4 rows in set (0.00 sec)<\/span><\/p>\n<p><span style=\"color: #0000ff;\">grant all privileges on *.* to 'root'@'localhost' ;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">mysql&gt; <span style=\"color: #0000ff;\">quit<\/span><\/span><br \/>\n<span style=\"color: #ff0000;\">Bye<\/span><\/p>\n<p>As the first and second example lines above do not work in Mint, this is no longer a DB \"simulation\" but tests a real DB you had to create above. I used my 32bit slowest PC so just 3 for comparison. This DB test may be useful if looking to transfer a DB to another server and get an idea how well it will perform compared the the old one before you move it etc...<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #ffffff;\">localhost stevee #<\/span><\/strong> sysbench --test=oltp --mysql-user=root --mysql-password=xxxxxx --mysql-db=sbtest --oltp-table-size=1000000 prepare<\/span><br \/>\n<span style=\"color: #ff0000;\">sysbench 0.4.12: multi-threaded system evaluation benchmark<\/span><\/p>\n<p><span style=\"color: #ff0000;\">No DB drivers specified, using mysql<\/span><br \/>\n<span style=\"color: #ff0000;\">Creating table 'sbtest'...<\/span><br \/>\n<span style=\"color: #ff0000;\">Creating 1000000 records in table 'sbtest'...<\/span><\/p>\n<p><span style=\"color: #0000ff;\">sysbench --num-threads=16 --max-requests=100000 --test=oltp --mysql-user=root --mysql-password=xxxxx --mysql-db=sbtest --oltp-table-size=1000000 --oltp-read-only run<\/span><\/p>\n<p><span style=\"color: #ff0000;\">sysbench 0.4.12: multi-threaded system evaluation benchmark<\/span><\/p>\n<p><span style=\"color: #ff0000;\">No DB drivers specified, using mysql<\/span><br \/>\n<span style=\"color: #ff0000;\"> Running the test with following options:<\/span><br \/>\n<span style=\"color: #ff0000;\"> Number of threads: 16<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Doing OLTP test.<\/span><br \/>\n<span style=\"color: #ff0000;\">Running mixed OLTP test<\/span><br \/>\n<span style=\"color: #ff0000;\">Doing read-only test<\/span><br \/>\n<span style=\"color: #ff0000;\">Using Special distribution (12 iterations, 1 pct of values are returned in 75 pct cases)<\/span><br \/>\n<span style=\"color: #ff0000;\">Using \"BEGIN\" for starting transactions<\/span><br \/>\n<span style=\"color: #ff0000;\">Using auto_inc on the id column<\/span><br \/>\n<span style=\"color: #ff0000;\">Maximum number of requests for OLTP test is limited to 100000<\/span><br \/>\n<span style=\"color: #ff0000;\">Threads started!<\/span><\/p>\n<p><span style=\"color: #ff0000;\">OLTP test statistics:<\/span><br \/>\n<span style=\"color: #ff0000;\"> queries performed:<\/span><br \/>\n<span style=\"color: #ff0000;\"> read: 1400000<\/span><br \/>\n<span style=\"color: #ff0000;\"> write: 0<\/span><br \/>\n<span style=\"color: #ff0000;\"> other: 200000<\/span><br \/>\n<span style=\"color: #ff0000;\"> total: 1600000<\/span><br \/>\n<span style=\"color: #ff0000;\"> transactions: 100000 (183.14 per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> deadlocks: 0 (0.00 per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> read\/write requests: <strong>1400000 (2563.96 per sec.)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"> other operations: 200000 (<strong>366.28 per sec.<\/strong>)<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Test execution summary:<\/span><br \/>\n<span style=\"color: #ff0000;\"> total time: <strong>546.0298s<\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"> total number of events: 100000<\/span><br \/>\n<span style=\"color: #ff0000;\"> total time taken by event execution: 8735.0764<\/span><br \/>\n<span style=\"color: #ff0000;\"> per-request statistics:<\/span><br \/>\n<span style=\"color: #ff0000;\"> min: 3.09ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> avg: 87.35ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> max: 456.36ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> approx. 95 percentile: 123.10ms<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Threads fairness:<\/span><br \/>\n<span style=\"color: #ff0000;\"> events (avg\/stddev): 6250.0000\/24.90<\/span><br \/>\n<span style=\"color: #ff0000;\"> execution time (avg\/stddev): 545.9423\/0.02<\/span><\/p>\n<p>Comparison 1, the HP64:<\/p>\n<p><span style=\"color: #ff0000;\">No DB drivers specified, using mysql<\/span><br \/>\n<span style=\"color: #ff0000;\">Running the test with following options:<\/span><br \/>\n<span style=\"color: #ff0000;\">Number of threads: 16<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Doing OLTP test.<\/span><br \/>\n<span style=\"color: #ff0000;\">Running mixed OLTP test<\/span><br \/>\n<span style=\"color: #ff0000;\">Doing read-only test<\/span><br \/>\n<span style=\"color: #ff0000;\">Using Special distribution (12 iterations, 1 pct of values are returned in 75 pct cases)<\/span><br \/>\n<span style=\"color: #ff0000;\">Using \"BEGIN\" for starting transactions<\/span><br \/>\n<span style=\"color: #ff0000;\">Using auto_inc on the id column<\/span><br \/>\n<span style=\"color: #ff0000;\">Maximum number of requests for OLTP test is limited to 100000<\/span><br \/>\n<span style=\"color: #ff0000;\">Threads started!<\/span><br \/>\n<span style=\"color: #ff0000;\">Done.<\/span><\/p>\n<p><span style=\"color: #ff0000;\">OLTP test statistics:<\/span><br \/>\n<span style=\"color: #ff0000;\"> queries performed:<\/span><br \/>\n<span style=\"color: #ff0000;\"> read: 1400000<\/span><br \/>\n<span style=\"color: #ff0000;\"> write: 0<\/span><br \/>\n<span style=\"color: #ff0000;\"> other: 200000<\/span><br \/>\n<span style=\"color: #ff0000;\"> total: 1600000<\/span><br \/>\n<span style=\"color: #ff0000;\"> transactions: 100000 (431.29 per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> deadlocks: 0 (0.00 per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> read\/write requests: <strong>1400000 (6038.00 per sec.)<\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"> other operations: 200000 <strong>(862.57 per sec.)<\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\">Test execution summary:<\/span><br \/>\n<span style=\"color: #ff0000;\"> total time: <strong>231.8647s<\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"> total number of events: 100000<\/span><br \/>\n<span style=\"color: #ff0000;\"> total time taken by event execution: 3708.6049<\/span><br \/>\n<span style=\"color: #ff0000;\"> per-request statistics:<\/span><br \/>\n<span style=\"color: #ff0000;\"> min: 3.19ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> avg: 37.09ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> max: 131.28ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> approx. 95 percentile: 49.82ms<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Threads fairness:<\/span><br \/>\n<span style=\"color: #ff0000;\"> events (avg\/stddev): 6250.0000\/66.88<\/span><br \/>\n<span style=\"color: #ff0000;\"> execution time (avg\/stddev): 231.7878\/0.01<\/span><\/p>\n<p>Comparison 2, the Dell64:<\/p>\n<p><span style=\"color: #ff0000;\">Maximum number of requests for OLTP test is limited to 100000<\/span><br \/>\n<span style=\"color: #ff0000;\">Threads started!<\/span><br \/>\n<span style=\"color: #ff0000;\">Done.<\/span><\/p>\n<p><span style=\"color: #ff0000;\">OLTP test statistics:<\/span><br \/>\n<span style=\"color: #ff0000;\"> queries performed:<\/span><br \/>\n<span style=\"color: #ff0000;\"> read: 1400000<\/span><br \/>\n<span style=\"color: #ff0000;\"> write: 0<\/span><br \/>\n<span style=\"color: #ff0000;\"> other: 200000<\/span><br \/>\n<span style=\"color: #ff0000;\"> total: 1600000<\/span><br \/>\n<span style=\"color: #ff0000;\"> transactions: 100000 (589.12 per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> deadlocks: 0 (0.00 per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> read\/write requests: 1400000 (<strong>8247.70 per sec<\/strong>.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> other operations: 200000 (1178.24 per sec.)<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Test execution summary:<\/span><br \/>\n<span style=\"color: #ff0000;\"> total time: <strong>169.7443s<\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"> total number of events: 100000<\/span><br \/>\n<span style=\"color: #ff0000;\"> total time taken by event execution: 2714.8378<\/span><br \/>\n<span style=\"color: #ff0000;\"> per-request statistics:<\/span><br \/>\n<span style=\"color: #ff0000;\"> min: 1.76ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> avg: 27.15ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> max: 107.29ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> approx. 95 percentile: 38.89ms<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Threads fairness:<\/span><br \/>\n<span style=\"color: #ff0000;\"> events (avg\/stddev): 6250.0000\/59.86<\/span><br \/>\n<span style=\"color: #ff0000;\"> execution time (avg\/stddev): 169.6774\/0.00<\/span><\/p>\n<p>Comparison 3, the Intel HP64:<\/p>\n<p><span style=\"color: #ff0000;\">OLTP test statistics:<\/span><br \/>\n<span style=\"color: #ff0000;\"> queries performed:<\/span><br \/>\n<span style=\"color: #ff0000;\"> read: 1400000<\/span><br \/>\n<span style=\"color: #ff0000;\"> write: 0<\/span><br \/>\n<span style=\"color: #ff0000;\"> other: 200000<\/span><br \/>\n<span style=\"color: #ff0000;\"> total: 1600000<\/span><br \/>\n<span style=\"color: #ff0000;\"> transactions: 100000 (272.75 per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> deadlocks: 0 (0.00 per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> read\/write requests: 1400000 (<strong>3818.54<\/strong> per sec.)<\/span><br \/>\n<span style=\"color: #ff0000;\"> other operations: 200000 (545.51 per sec.)<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Test execution summary:<\/span><br \/>\n<span style=\"color: #ff0000;\"> total time: <strong>366.6323s<\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"> total number of events: 100000<\/span><br \/>\n<span style=\"color: #ff0000;\"> total time taken by event execution: 5865.1829<\/span><br \/>\n<span style=\"color: #ff0000;\"> per-request statistics:<\/span><br \/>\n<span style=\"color: #ff0000;\"> min: 1.49ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> avg: 58.65ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> max: 209.58ms<\/span><br \/>\n<span style=\"color: #ff0000;\"> approx. 95 percentile: 94.70ms<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Threads fairness:<\/span><br \/>\n<span style=\"color: #ff0000;\"> events (avg\/stddev): 6250.0000\/77.06<\/span><br \/>\n<span style=\"color: #ff0000;\"> execution time (avg\/stddev): 366.5739\/0.01<\/span><\/p>\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">\n<colgroup>\n<col width=\"51*\" \/>\n<col width=\"51*\" \/>\n<col width=\"51*\" \/>\n<col width=\"51*\" \/>\n<col width=\"51*\" \/><\/colgroup>\n<tbody>\n<tr valign=\"top\">\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><strong>HP Intel Dual 64 2GB<\/strong><\/td>\n<td width=\"20%\"><strong>Dell 64 6GB<\/strong><\/td>\n<td width=\"20%\"><strong>HP Pav 64 4GB<\/strong><\/td>\n<td width=\"20%\"><strong>HP Pav 32 1GB<\/strong><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"20%\"><strong>\u00a0read\/write requests:<\/strong><\/td>\n<td width=\"20%\"><strong>\u00a0<span style=\"color: #ff0000;\">3818.54 per sec<\/span><\/strong><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>\u00a08247.70 per sec<\/strong><\/span><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>6038.00 per sec<\/strong><\/span><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>\u00a02563.96 per sec<\/strong><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"20%\"><strong>total time:<\/strong><\/td>\n<td width=\"20%\"><strong>\u00a0<span style=\"color: #ff0000;\">366.6323s<\/span><\/strong><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>\u00a0169.7443s<\/strong><\/span><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>\u00a0231.8647s<\/strong><\/span><\/td>\n<td width=\"20%\"><span style=\"color: #ff0000;\"><strong>\u00a0546.0298s<\/strong><\/span><\/td>\n<\/tr>\n<tr valign=\"top\">\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<td width=\"20%\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_4320\" class=\"pvc_stats all  \" data-element-id=\"4320\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>man sysbench oltp This test mode was written to benchmark a real database performance. At the prepare stage the following table is created in the specified database (sbtest by default): Example usage: (THESE DON'T WORK AS IS - A DB NEEDS CREATING FIRST - SEE BELOW) $ sysbench --test=oltp --mysql-table-type=myisam --oltp-table-size=1000000 --mysql-socket=\/tmp\/mysql.sock prepare $ sysbench <a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/sysbench-simulated-database-testing\/\" class=\"more-link\">...<span class=\"screen-reader-text\">\u00a0 Sysbench &#8211; Simulated Database Testing<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-4320","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"a3_pvc":{"activated":true,"total_views":1,"today_views":0},"_links":{"self":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/4320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/comments?post=4320"}],"version-history":[{"count":0,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/4320\/revisions"}],"wp:attachment":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/media?parent=4320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/categories?post=4320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/tags?post=4320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}