cvs: presentations /slides/bm06 mysql.xml pg_persist.xml
| From: | Rasmus Lerdorf | Date: | Sat, 29 Apr 2006 17:54:30 +0000 |
| Subject: | cvs: presentations /slides/bm06 mysql.xml pg_persist.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1303@lists.php.net to get a copy of this message | ||
rasmus Sat Apr 29 17:54:30 2006 UTC
Modified files:
/presentations/slides/bm06 mysql.xml pg_persist.xml
Log:
By popular demand, add InnoDB numbers to this slide
http://cvs.php.net/viewcvs.cgi/presentations/slides/bm06/mysql.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/slides/bm06/mysql.xml
diff -u presentations/slides/bm06/mysql.xml:1.1 presentations/slides/bm06/mysql.xml:1.2
--- presentations/slides/bm06/mysql.xml:1.1 Thu Mar 30 17:48:43 2006
+++ presentations/slides/bm06/mysql.xml Sat Apr 29 17:54:30 2006
@@ -2,11 +2,11 @@
<break lines="2"/>
<blurb fontsize="4em" marginleft="2em" marginright="2em">
-Non-persistent: *390* requests/second
+Non-persistent: *370* requests/second
</blurb>
<blurb fontsize="4em" marginleft="2em" marginright="2em">
-Persistent: *475* requests/second
+Persistent: *525* requests/second
</blurb>
<blurb fontsize="4em" marginleft="2em" marginright="2em">
@@ -25,12 +25,21 @@
'db_db' => 'users',
'db_opts' => array(PDO::ERRMODE_EXCEPTION => true,
PDO::ATTR_PERSISTENT => true,
- PDO::MYSQL_ATTR_DIRECT_QUERY=>1)
+ PDO::ATTR_EMULATE_PREPARES=>true)
);
?>]]></example>
-
+<blurb>
+PDO::ATTR_EMULATE_PREPARES was added in PHP 5.1.3. You can use PDO::MYSQL_ATTR_DIRECT_QUERY in
earlier versions.
+</blurb>
<blurb fontsize="4em" marginleft="2em" marginright="2em">
-That brings us to *500* requests/second. Down to 4 servers!
+That brings us to *580* requests/second. Down to 3 servers!
+</blurb>
+
+<blurb>
+Note that comparing PostgreSQL to MySQL using MyISAM tables isn't very fair. If you need
transactions, rollbacks
+or row-level locking all of which PostgreSQL provides, you have to use the InnoDB storage handler
with MySQL. The
+same benchmark using InnoDB for both tables in the join gives us *345* requests/second
non-persistent without direct queries.
+Turning on direct queries bumps this to *418* requests/second and adding persistent connections
gives us *475* requests/second.
</blurb>
</slide>
http://cvs.php.net/viewcvs.cgi/presentations/slides/bm06/pg_persist.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/slides/bm06/pg_persist.xml
diff -u presentations/slides/bm06/pg_persist.xml:1.1 presentations/slides/bm06/pg_persist.xml:1.2
--- presentations/slides/bm06/pg_persist.xml:1.1 Thu Mar 30 17:48:43 2006
+++ presentations/slides/bm06/pg_persist.xml Sat Apr 29 17:54:30 2006
@@ -38,11 +38,11 @@
);
?>]]></example>
-<example title="http_load" fontsize="1.6em" type="shell"
marginright="0em"><![CDATA[5000 fetches, 5 max parallel, 3e+07 bytes, in 13.7056
seconds
+<example title="http_load" fontsize="1.6em" type="shell"
marginright="0em"><![CDATA[5000 fetches, 5 max parallel, 3e+07 bytes, in 14.7368
seconds
6000 mean bytes/connection
-|ffff00|364.815| fetches/sec, 2.18889e+06 bytes/sec
-msecs/connect: 0.316614 mean, 9.299 max, 0.166 min
-msecs/first-response: 10.4774 mean, 7571.28 max, 2.379 min
+|ffff00|339.286| fetches/sec, 2.03572e+06 bytes/sec
+msecs/connect: 0.404772 mean, 34.54 max, 0.168 min
+msecs/first-response: 10.3008 mean, 94.533 max, 2.332 min
HTTP response codes:
code 200 -- 5000]]></example>