提交 7667ff29 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 e4084173
......@@ -38,54 +38,54 @@ Please note this is mostly a single connection benchmark run on one computer.
<h3>Embedded</h3>
<table border="1" class="bar">
<tr><th>Test Case</th><th>Unit</th><th>H2</th><th>HSQLDB</th><th>Derby</th></tr>
<tr><td>Simple: Init</td><td>ms</td><td>719</td><td>1344</td><td>2906</td></tr>
<tr><td>Simple: Query (random)</td><td>ms</td><td>328</td><td>328</td><td>1578</td></tr>
<tr><td>Simple: Query (sequential)</td><td>ms</td><td>250</td><td>250</td><td>1484</td></tr>
<tr><td>Simple: Update (random)</td><td>ms</td><td>688</td><td>1828</td><td>14922</td></tr>
<tr><td>Simple: Delete (sequential)</td><td>ms</td><td>203</td><td>265</td><td>10235</td></tr>
<tr><td>Simple: Memory Usage</td><td>MB</td><td>6</td><td>9</td><td>11</td></tr>
<tr><td>BenchA: Init</td><td>ms</td><td>422</td><td>672</td><td>4328</td></tr>
<tr><td>BenchA: Transactions</td><td>ms</td><td>6969</td><td>3531</td><td>16719</td></tr>
<tr><td>BenchA: Memory Usage</td><td>MB</td><td>10</td><td>10</td><td>9</td></tr>
<tr><td>BenchB: Init</td><td>ms</td><td>1703</td><td>3937</td><td>13844</td></tr>
<tr><td>BenchB: Transactions</td><td>ms</td><td>2360</td><td>1328</td><td>5797</td></tr>
<tr><td>BenchB: Memory Usage</td><td>MB</td><td>8</td><td>9</td><td>8</td></tr>
<tr><td>BenchC: Init</td><td>ms</td><td>718</td><td>468</td><td>5328</td></tr>
<tr><td>BenchC: Transactions</td><td>ms</td><td>2688</td><td>60828</td><td>7109</td></tr>
<tr><td>BenchC: Memory Usage</td><td>MB</td><td>10</td><td>14</td><td>9</td></tr>
<tr><td>Executed Statements</td><td>#</td><td>594255</td><td>594255</td><td>594255</td></tr>
<tr><td>Total Time</td><td>ms</td><td>17048</td><td>74779</td><td>84250</td></tr>
<tr><td>Statement per Second</td><td>#</td><td>34857</td><td>7946</td><td>7053</td></tr>
<tr><td>Simple: Init</td><td>ms</td><td>610</td><td>657</td><td>3187</td></tr>
<tr><td>Simple: Query (random)</td><td>ms</td><td>297</td><td>312</td><td>1828</td></tr>
<tr><td>Simple: Query (sequential)</td><td>ms</td><td>203</td><td>266</td><td>1766</td></tr>
<tr><td>Simple: Update (random)</td><td>ms</td><td>1078</td><td>1484</td><td>22031</td></tr>
<tr><td>Simple: Delete (sequential)</td><td>ms</td><td>234</td><td>281</td><td>7407</td></tr>
<tr><td>Simple: Memory Usage</td><td>MB</td><td>6</td><td>7</td><td>11</td></tr>
<tr><td>BenchA: Init</td><td>ms</td><td>859</td><td>438</td><td>4047</td></tr>
<tr><td>BenchA: Transactions</td><td>ms</td><td>5266</td><td>2875</td><td>17500</td></tr>
<tr><td>BenchA: Memory Usage</td><td>MB</td><td>9</td><td>14</td><td>10</td></tr>
<tr><td>BenchB: Init</td><td>ms</td><td>4016</td><td>2687</td><td>16875</td></tr>
<tr><td>BenchB: Transactions</td><td>ms</td><td>2609</td><td>3282</td><td>4250</td></tr>
<tr><td>BenchB: Memory Usage</td><td>MB</td><td>9</td><td>10</td><td>8</td></tr>
<tr><td>BenchC: Init</td><td>ms</td><td>891</td><td>594</td><td>5766</td></tr>
<tr><td>BenchC: Transactions</td><td>ms</td><td>4359</td><td>75438</td><td>11718</td></tr>
<tr><td>BenchC: Memory Usage</td><td>MB</td><td>9</td><td>18</td><td>9</td></tr>
<tr><td>Executed statements</td><td>#</td><td>594255</td><td>594255</td><td>594255</td></tr>
<tr><td>Total time</td><td>ms</td><td>20422</td><td>88314</td><td>96375</td></tr>
<tr><td>Statements per second</td><td>#</td><td>29098</td><td>6728</td><td>6166</td></tr>
</table>
<h3>Client-Server</h3>
<table border="1" class="bar">
<tr><th>Test Case</th><th>Unit</th><th>H2</th><th>HSQLDB</th><th>Derby</th><th>PostgreSQL</th><th>MySQL</th></tr>
<tr><td>Simple: Init</td><td>ms</td><td>2516</td><td>3109</td><td>7078</td><td>4625</td><td>2859</td></tr>
<tr><td>Simple: Query (random)</td><td>ms</td><td>2890</td><td>2547</td><td>8843</td><td>7703</td><td>3203</td></tr>
<tr><td>Simple: Query (sequential)</td><td>ms</td><td>2953</td><td>2407</td><td>8516</td><td>6953</td><td>3516</td></tr>
<tr><td>Simple: Update (random)</td><td>ms</td><td>3141</td><td>3671</td><td>18125</td><td>7797</td><td>4687</td></tr>
<tr><td>Simple: Delete (sequential)</td><td>ms</td><td>1000</td><td>1219</td><td>12891</td><td>3547</td><td>1938</td></tr>
<tr><td>Simple: Memory Usage</td><td>MB</td><td>6</td><td>10</td><td>14</td><td>0</td><td>1</td></tr>
<tr><td>BenchA: Init</td><td>ms</td><td>2266</td><td>2484</td><td>7797</td><td>4234</td><td>4703</td></tr>
<tr><td>BenchA: Transactions</td><td>ms</td><td>11078</td><td>8875</td><td>26328</td><td>18641</td><td>11187</td></tr>
<tr><td>BenchA: Memory Usage</td><td>MB</td><td>8</td><td>13</td><td>10</td><td>0</td><td>1</td></tr>
<tr><td>BenchB: Init</td><td>ms</td><td>8422</td><td>12531</td><td>27734</td><td>18609</td><td>12312</td></tr>
<tr><td>BenchB: Transactions</td><td>ms</td><td>4125</td><td>3344</td><td>7875</td><td>7922</td><td>3266</td></tr>
<tr><td>BenchB: Memory Usage</td><td>MB</td><td>9</td><td>10</td><td>8</td><td>0</td><td>1</td></tr>
<tr><td>BenchC: Init</td><td>ms</td><td>1781</td><td>1609</td><td>6797</td><td>2453</td><td>3328</td></tr>
<tr><td>BenchC: Transactions</td><td>ms</td><td>8453</td><td>62469</td><td>19859</td><td>11516</td><td>7062</td></tr>
<tr><td>BenchC: Memory Usage</td><td>MB</td><td>10</td><td>15</td><td>9</td><td>0</td><td>1</td></tr>
<tr><td>Executed Statements</td><td>#</td><td>594255</td><td>594255</td><td>594255</td><td>594255</td><td>594255</td></tr>
<tr><td>Total Time</td><td>ms</td><td>48625</td><td>104265</td><td>151843</td><td>94000</td><td>58061</td></tr>
<tr><td>Statement per Second</td><td>#</td><td>12221</td><td>5699</td><td>3913</td><td>6321</td><td>10235</td></tr>
<tr><td>Simple: Init</td><td>ms</td><td>3125</td><td>3312</td><td>7140</td><td>5109</td><td>3594</td></tr>
<tr><td>Simple: Query (random)</td><td>ms</td><td>3390</td><td>3328</td><td>9953</td><td>5422</td><td>4812</td></tr>
<tr><td>Simple: Query (sequential)</td><td>ms</td><td>3235</td><td>3219</td><td>9813</td><td>5296</td><td>3969</td></tr>
<tr><td>Simple: Update (random)</td><td>ms</td><td>3437</td><td>4562</td><td>26594</td><td>6766</td><td>5703</td></tr>
<tr><td>Simple: Delete (sequential)</td><td>ms</td><td>1391</td><td>1625</td><td>9343</td><td>2750</td><td>2094</td></tr>
<tr><td>Simple: Memory Usage</td><td>MB</td><td>7</td><td>7</td><td>13</td><td>0</td><td>1</td></tr>
<tr><td>BenchA: Init</td><td>ms</td><td>2781</td><td>2954</td><td>7828</td><td>4875</td><td>3859</td></tr>
<tr><td>BenchA: Transactions</td><td>ms</td><td>13015</td><td>11718</td><td>30031</td><td>17672</td><td>13187</td></tr>
<tr><td>BenchA: Memory Usage</td><td>MB</td><td>9</td><td>17</td><td>10</td><td>1</td><td>1</td></tr>
<tr><td>BenchB: Init</td><td>ms</td><td>12000</td><td>13047</td><td>30562</td><td>20687</td><td>15328</td></tr>
<tr><td>BenchB: Transactions</td><td>ms</td><td>5375</td><td>3688</td><td>8063</td><td>6250</td><td>4594</td></tr>
<tr><td>BenchB: Memory Usage</td><td>MB</td><td>10</td><td>12</td><td>8</td><td>1</td><td>1</td></tr>
<tr><td>BenchC: Init</td><td>ms</td><td>2390</td><td>1875</td><td>7015</td><td>2515</td><td>4062</td></tr>
<tr><td>BenchC: Transactions</td><td>ms</td><td>11391</td><td>77922</td><td>23766</td><td>13203</td><td>8141</td></tr>
<tr><td>BenchC: Memory Usage</td><td>MB</td><td>11</td><td>18</td><td>15</td><td>1</td><td>1</td></tr>
<tr><td>Executed statements</td><td>#</td><td>594255</td><td>594255</td><td>594255</td><td>594255</td><td>594255</td></tr>
<tr><td>Total time</td><td>ms</td><td>61530</td><td>127250</td><td>170108</td><td>90545</td><td>69343</td></tr>
<tr><td>Statements per second</td><td>#</td><td>9657</td><td>4669</td><td>3493</td><td>6563</td><td>8569</td></tr>
</table>
<h3>Benchmark Results and Comments</h3>
<h4>H2</h4>
<p>
Version 1.0.67 (2008-02-22) was used for the test.
Version 1.0.78 (2008-08-28) was used for the test.
For simpler operations, the performance of H2 is about the same as for HSQLDB.
For more complex queries, the query optimizer is very important.
However H2 is not very fast in every case, certain kind of queries may still be slow.
......@@ -98,7 +98,7 @@ The open/close time is almost fixed, because of the file locking protocol: The e
<h4>HSQLDB</h4>
<p>
Version 1.8.0.8 was used for the test.
Version 1.8.0.10 was used for the test.
Cached tables are used in this test (hsqldb.default_table_type=cached),
and the write delay is 1 second (SET WRITE_DELAY 1).
HSQLDB is fast when using simple operations.
......@@ -118,7 +118,7 @@ The reason is, a backup of the database is created whenever the database is open
<h4>Derby</h4>
<p>
Version 10.3.1.4 was used for the test. Derby is clearly the slowest embedded database in this test.
Version 10.4.2.0 was used for the test. Derby is clearly the slowest embedded database in this test.
This seems to be a structural problem, because all operations are really slow.
It will not be easy for the developers of Derby to improve the performance to a reasonable level.
A few problems have been identified: Leaving autocommit on is a problem for Derby.
......@@ -127,7 +127,7 @@ If it is switched off during the whole test, the results are about 20% better fo
<h4>PostgreSQL</h4>
<p>
Version 8.1.4 was used for the test.
Version 8.3.4 was used for the test.
The following options where changed in postgresql.conf:
fsync = off, commit_delay = 1000.
PostgreSQL is run in server mode. It looks like the base performance is slower than
......@@ -137,7 +137,7 @@ The memory usage number is incorrect, because only the memory usage of the JDBC
<h4>MySQL</h4>
<p>
Version 5.0.22 was used for the test.
Version 5.0.67 was used for the test.
MySQL was run with the InnoDB backend.
The setting innodb_flush_log_at_trx_commit
(found in the my.ini file) was set to 0. Otherwise (and by default), MySQL is really slow
......
......@@ -276,7 +276,7 @@ java org.h2.test.TestAll timer
/*
14.zip
check all version(s) before releasing
check all version(s) before the release
Add version number. Install directory: h2-1.1, jar file: h2-1.1.100.jar. Micro version: use build number, staring with 1.1.100
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论