亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? speed.tcl

?? sqlite庫
?? TCL
?? 第 1 頁 / 共 2 頁
字號:
## Run this Tcl script to generate the speed.html file.#set rcsid {$Id: speed.tcl,v 1.17 2005/03/12 15:55:11 drh Exp $ }source common.tclheader {SQLite Database Speed Comparison}puts {<h2>Database Speed Comparison</h2><font color="red"><b>Note:  This document is old.  It describes a speed comparison betweenan older version of SQLite against archaic versions of MySQL and PostgreSQL.Readers are invited to contribute more up-to-date speed comparisonson the <a href="http://www.sqlite.org/cvstrac/wiki">SQLite Wiki</a>.<p>The numbers here are old enough to be nearly meaningless.  Until it isupdated, use this document only as proof that SQLite is not asluggard.</b></font><h3>Executive Summary</h3><p>A series of tests were run to measure the relative performance ofSQLite 2.7.6, PostgreSQL 7.1.3, and MySQL 3.23.41.The following are generalconclusions drawn from these experiments:</p><ul><li><p>  SQLite 2.7.6 is significantly faster (sometimes as much as 10 or  20 times faster) than the default PostgreSQL 7.1.3 installation  on RedHat 7.2 for most common operations.  </p></li><li><p>  SQLite 2.7.6 is often faster (sometimes  more than twice as fast) than MySQL 3.23.41  for most common operations.</p></li><li><p>  SQLite does not execute CREATE INDEX or DROP TABLE as fast as  the other databases.  But this is not seen as a problem because  those are infrequent operations.</p></li><li><p>  SQLite works best if you group multiple operations together into  a single transaction.</p></li></ul><p>The results presented here come with the following caveats:</p><ul><li><p>  These tests did not attempt to measure multi-user performance or  optimization of complex queries involving multiple joins and subqueries.</p></li><li><p>  These tests are on a relatively small (approximately 14 megabyte) database.  They do not measure how well the database engines scale to larger problems.</p></li></ul><h3>Test Environment</h3><p>The platform used for these tests is a 1.6GHz Athlon with 1GB or memoryand an IDE disk drive.  The operating system is RedHat Linux 7.2 witha stock kernel.</p><p>The PostgreSQL and MySQL servers used were as delivered by default onRedHat 7.2.  (PostgreSQL version 7.1.3 and MySQL version 3.23.41.)No effort was made to tune these engines.  Note in particularthe the default MySQL configuration on RedHat 7.2 does not supporttransactions.  Not having to support transactions gives MySQL abig speed advantage, but SQLite is still able to hold its own on mosttests.</p><p>I am told that the default PostgreSQL configuration in RedHat 7.3is unnecessarily conservative (it is designed towork on a machine with 8MB of RAM) and that PostgreSQL couldbe made to run a lot faster with some knowledgeable configurationtuning.Matt Sergeant reports that he has tuned his PostgreSQL installationand rerun the tests shown below.  His results show thatPostgreSQL and MySQL run at about the same speed.  For Matt'sresults, visit</p><blockquote><a href="http://www.sergeant.org/sqlite_vs_pgsync.html">http://www.sergeant.org/sqlite_vs_pgsync.html</a></blockquote><p>SQLite was tested in the same configuration that it appearson the website.  It was compiled with -O6 optimization and withthe -DNDEBUG=1 switch which disables the many "assert()" statementsin the SQLite code.  The -DNDEBUG=1 compiler option roughly doublesthe speed of SQLite.</p><p>All tests are conducted on an otherwise quiescent machine.A simple Tcl script was used to generate and run all the tests.A copy of this Tcl script can be found in the SQLite source treein the file <b>tools/speedtest.tcl</b>.</p><p>The times reported on all tests represent wall-clock time in seconds.  Two separate time values are reported for SQLite.The first value is for SQLite in its default configuration withfull disk synchronization turned on.  With synchronization turnedon, SQLite executesan <b>fsync()</b> system call (or the equivalent) at key pointsto make certain that critical data has actually been written to the disk drive surface.  Synchronizationis necessary to guarantee the integrity of the database if theoperating system crashes or the computer powers down unexpectedlyin the middle of a database update.  The second time reported for SQLite iswhen synchronization is turned off.  With synchronization off,SQLite is sometimes much faster, but there is a risk that anoperating system crash or an unexpected power failure coulddamage the database.  Generally speaking, the synchronous SQLitetimes are for comparison against PostgreSQL (which is alsosynchronous) and the asynchronous SQLite times are for comparison against the asynchronous MySQL engine.</p><h3>Test 1: 1000 INSERTs</h3><blockquote>CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100));<br>INSERT INTO t1 VALUES(1,13153,'thirteen thousand one hundred fifty three');<br>INSERT INTO t1 VALUES(2,75560,'seventy five thousand five hundred sixty');<br><i>... 995 lines omitted</i><br>INSERT INTO t1 VALUES(998,66289,'sixty six thousand two hundred eighty nine');<br>INSERT INTO t1 VALUES(999,24322,'twenty four thousand three hundred twenty two');<br>INSERT INTO t1 VALUES(1000,94142,'ninety four thousand one hundred forty two');<br></blockquote><table border=0 cellpadding=0 cellspacing=0><tr><td>PostgreSQL:</td><td align="right">&nbsp;&nbsp;&nbsp;4.373</td></tr><tr><td>MySQL:</td><td align="right">&nbsp;&nbsp;&nbsp;0.114</td></tr><tr><td>SQLite 2.7.6:</td><td align="right">&nbsp;&nbsp;&nbsp;13.061</td></tr><tr><td>SQLite 2.7.6 (nosync):</td><td align="right">&nbsp;&nbsp;&nbsp;0.223</td></tr></table><p>Because it does not have a central server to coordinate access,SQLite must close and reopen the database file, and thus invalidateits cache, for each transaction.  In this test, each SQL statementis a separate transaction so the database file must be opened and closedand the cache must be flushed 1000 times.  In spite of this, the asynchronousversion of SQLite is still nearly as fast as MySQL.  Notice how much slowerthe synchronous version is, however.  SQLite calls <b>fsync()</b> after each synchronous transaction to make sure that all data is safely onthe disk surface before continuing.  For most of the 13 seconds in thesynchronous test, SQLite was sitting idle waiting on disk I/O to complete.</p><h3>Test 2: 25000 INSERTs in a transaction</h3><blockquote>BEGIN;<br>CREATE TABLE t2(a INTEGER, b INTEGER, c VARCHAR(100));<br>INSERT INTO t2 VALUES(1,59672,'fifty nine thousand six hundred seventy two');<br><i>... 24997 lines omitted</i><br>INSERT INTO t2 VALUES(24999,89569,'eighty nine thousand five hundred sixty nine');<br>INSERT INTO t2 VALUES(25000,94666,'ninety four thousand six hundred sixty six');<br>COMMIT;<br></blockquote><table border=0 cellpadding=0 cellspacing=0><tr><td>PostgreSQL:</td><td align="right">&nbsp;&nbsp;&nbsp;4.900</td></tr><tr><td>MySQL:</td><td align="right">&nbsp;&nbsp;&nbsp;2.184</td></tr><tr><td>SQLite 2.7.6:</td><td align="right">&nbsp;&nbsp;&nbsp;0.914</td></tr><tr><td>SQLite 2.7.6 (nosync):</td><td align="right">&nbsp;&nbsp;&nbsp;0.757</td></tr></table><p>When all the INSERTs are put in a transaction, SQLite no longer has toclose and reopen the database or invalidate its cache between each statement.It also does nothave to do any fsync()s until the very end.  When unshackled inthis way, SQLite is much faster than either PostgreSQL and MySQL.</p><h3>Test 3: 25000 INSERTs into an indexed table</h3><blockquote>BEGIN;<br>CREATE TABLE t3(a INTEGER, b INTEGER, c VARCHAR(100));<br>CREATE INDEX i3 ON t3(c);<br><i>... 24998 lines omitted</i><br>INSERT INTO t3 VALUES(24999,88509,'eighty eight thousand five hundred nine');<br>INSERT INTO t3 VALUES(25000,84791,'eighty four thousand seven hundred ninety one');<br>COMMIT;<br></blockquote><table border=0 cellpadding=0 cellspacing=0><tr><td>PostgreSQL:</td><td align="right">&nbsp;&nbsp;&nbsp;8.175</td></tr><tr><td>MySQL:</td><td align="right">&nbsp;&nbsp;&nbsp;3.197</td></tr><tr><td>SQLite 2.7.6:</td><td align="right">&nbsp;&nbsp;&nbsp;1.555</td></tr><tr><td>SQLite 2.7.6 (nosync):</td><td align="right">&nbsp;&nbsp;&nbsp;1.402</td></tr></table><p>There were reports that SQLite did not perform as well on an indexed table.This test was recently added to disprove those rumors.  It is true thatSQLite is not as fast at creating new index entries as the other engines(see Test 6 below) but its overall speed is still better.</p><h3>Test 4: 100 SELECTs without an index</h3><blockquote>BEGIN;<br>SELECT count(*), avg(b) FROM t2 WHERE b>=0 AND b<1000;<br>SELECT count(*), avg(b) FROM t2 WHERE b>=100 AND b<1100;<br><i>... 96 lines omitted</i><br>SELECT count(*), avg(b) FROM t2 WHERE b>=9800 AND b<10800;<br>SELECT count(*), avg(b) FROM t2 WHERE b>=9900 AND b<10900;<br>COMMIT;<br></blockquote><table border=0 cellpadding=0 cellspacing=0><tr><td>PostgreSQL:</td><td align="right">&nbsp;&nbsp;&nbsp;3.629</td></tr><tr><td>MySQL:</td><td align="right">&nbsp;&nbsp;&nbsp;2.760</td></tr><tr><td>SQLite 2.7.6:</td><td align="right">&nbsp;&nbsp;&nbsp;2.494</td></tr><tr><td>SQLite 2.7.6 (nosync):</td><td align="right">&nbsp;&nbsp;&nbsp;2.526</td></tr></table><p>This test does 100 queries on a 25000 entry table without an index,thus requiring a full table scan.   Prior versions of SQLite used tobe slower than PostgreSQL and MySQL on this test, but recent performanceenhancements have increased its speed so that it is now the fastestof the group.</p><h3>Test 5: 100 SELECTs on a string comparison</h3><blockquote>BEGIN;<br>SELECT count(*), avg(b) FROM t2 WHERE c LIKE '%one%';<br>SELECT count(*), avg(b) FROM t2 WHERE c LIKE '%two%';<br><i>... 96 lines omitted</i><br>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本欧美在线观看| 国产精一品亚洲二区在线视频| 日韩国产欧美三级| 九九热在线视频观看这里只有精品| 岛国精品一区二区| 91精品国产一区二区三区香蕉| 久久精品一级爱片| 日韩精品乱码av一区二区| 不卡av在线免费观看| 欧美精品一区视频| 五月激情综合婷婷| 成人精品视频.| 久久久美女毛片| 午夜成人免费电影| 在线视频亚洲一区| 国产女主播一区| 激情综合色播激情啊| 欧美日韩一区二区在线观看视频| 欧美韩日一区二区三区四区| 美女mm1313爽爽久久久蜜臀| 欧美视频一区在线观看| 欧美激情一区二区三区蜜桃视频| 奇米在线7777在线精品 | 亚洲日本一区二区| 国产真实乱子伦精品视频| 制服.丝袜.亚洲.另类.中文| 一区二区三区免费看视频| 国产不卡在线视频| 久久久精品中文字幕麻豆发布| 日日夜夜精品视频免费| 欧美视频在线一区二区三区| 亚洲欧美日韩精品久久久久| 国产xxx精品视频大全| 2017欧美狠狠色| 国产在线观看免费一区| 久久影院视频免费| 国产精品一区二区不卡| 国产亚洲综合性久久久影院| 国产麻豆精品视频| 国产亚洲一二三区| 风间由美中文字幕在线看视频国产欧美| 欧美成人精品1314www| 久久精品国产一区二区| 欧美成人三级在线| 国产成人av自拍| 国产精品网曝门| 97超碰欧美中文字幕| 综合久久久久久久| 欧美性生活大片视频| 亚洲一级二级在线| 这里是久久伊人| 九九视频精品免费| 中文字幕第一区二区| 成人在线综合网| 亚洲色图20p| 欧美老肥妇做.爰bbww视频| 日日夜夜免费精品| 国产视频一区不卡| 欧美性色综合网| 日韩av在线发布| www久久久久| 成人18视频日本| 亚洲成人综合网站| 久久伊人蜜桃av一区二区| av高清不卡在线| 天天操天天色综合| 久久精品亚洲精品国产欧美kt∨| 成人精品视频一区| 日韩精品电影在线观看| 国产人伦精品一区二区| 在线视频一区二区三区| 精品一区二区三区免费播放| 中文字幕一区二区在线观看| 欧美日韩成人综合| 国产激情视频一区二区三区欧美| 亚洲免费观看在线观看| 91精品国产福利| 91首页免费视频| 美女一区二区久久| 亚洲精品日产精品乱码不卡| 日韩区在线观看| 一本色道久久综合精品竹菊| 久久99热狠狠色一区二区| 亚洲视频一区二区在线观看| 在线综合亚洲欧美在线视频| 成人av片在线观看| 久久99久久精品| 亚洲精品国产一区二区精华液 | 欧美一卡二卡三卡| 不卡的av网站| 国产精品一卡二卡| 奇米一区二区三区| 日韩久久一区二区| 久久综合九色综合97婷婷| 在线观看亚洲一区| 成人黄色电影在线| 国产一二三精品| 日韩电影在线免费| 亚洲一区二区三区视频在线播放 | 欧美日韩色综合| 99免费精品在线观看| 国产在线不卡视频| 美国毛片一区二区| 亚洲国产日韩在线一区模特 | 一本到不卡免费一区二区| 久久国产免费看| 日韩精品一区第一页| 亚洲综合丝袜美腿| 亚洲欧美一区二区不卡| 中文av字幕一区| 久久伊人蜜桃av一区二区| 日韩精品一区二区三区蜜臀| 制服丝袜中文字幕一区| 欧美精品在线观看一区二区| 91高清视频免费看| 色乱码一区二区三区88| 91免费观看视频| 色婷婷激情久久| 在线精品视频免费播放| 91久久久免费一区二区| 91在线精品秘密一区二区| 成人激情小说网站| 99精品视频一区| 色综合久久久久综合99| 在线观看区一区二| 欧美日韩aaaaaa| 日韩亚洲欧美一区| 欧美不卡视频一区| 欧美成人a视频| 久久亚洲免费视频| 欧美精品一区二区三区四区| 欧美一区二区久久久| 日韩一区二区在线观看| 久久这里都是精品| 久久精品夜色噜噜亚洲a∨| 国产精品久久三区| 国产精品激情偷乱一区二区∴| 中文字幕一区二区三| 中文字幕在线一区| 偷拍自拍另类欧美| 亚洲另类在线视频| 天堂影院一区二区| 国产一区二区三区久久久| 国产一区欧美日韩| 91在线国产观看| 91黄色免费观看| 欧美一二三区精品| 555www色欧美视频| 久久亚洲捆绑美女| 亚洲另类一区二区| 日本va欧美va欧美va精品| 国产成人精品三级| 懂色av一区二区三区蜜臀| 91黄视频在线观看| 91国模大尺度私拍在线视频| 成人app在线观看| 成人黄色小视频在线观看| 成人免费高清视频| 91理论电影在线观看| 欧美日韩一卡二卡三卡| 91精品国产色综合久久不卡电影 | 一区二区三区高清在线| 一区二区三区四区在线免费观看 | 欧美日韩激情一区二区| 7777精品伊人久久久大香线蕉超级流畅 | 欧美一级xxx| 国产精品的网站| 午夜精品久久久久久久久久久 | 亚洲图片自拍偷拍| 久久99国产精品免费| 成人免费黄色大片| 欧美日韩美少妇| 亚洲精品一区二区三区精华液| 国产色爱av资源综合区| 一区二区三区 在线观看视频| 肉肉av福利一精品导航| 国产精品99久久久久久似苏梦涵 | 欧美xxx久久| 日韩精品一区二区三区在线| 国产精品美女久久久久aⅴ| 国产日韩精品一区二区浪潮av| 一区二区三区四区蜜桃| 亚洲精品自拍动漫在线| 久久99国产精品久久99 | 亚洲色图制服诱惑| 日本麻豆一区二区三区视频| 成人黄页毛片网站| 精品国产乱码久久久久久影片| 最新不卡av在线| 99久久免费视频.com| 日韩精品在线看片z| 亚洲激情欧美激情| 日本aⅴ免费视频一区二区三区| 欧洲精品一区二区| 国产清纯在线一区二区www| 午夜久久福利影院| 国产又黄又大久久| 91精品国产综合久久久久久久| 国产精品久久久久影院色老大| 日本在线观看不卡视频|