Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
b34ed604
提交
b34ed604
authored
6月 01, 2009
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
prepare release
上级
028741ee
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
18699 行增加
和
18699 行删除
+18699
-18699
performance.html
h2/src/docsrc/html/performance.html
+39
-39
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+9315
-9315
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+9320
-9320
javadoc.properties
h2/src/main/org/h2/res/javadoc.properties
+24
-24
test.properties
h2/src/test/org/h2/test/bench/test.properties
+1
-1
没有找到文件。
h2/src/docsrc/html/performance.html
浏览文件 @
b34ed604
...
@@ -38,54 +38,54 @@ Please note this is mostly a single connection benchmark run on one computer.
...
@@ -38,54 +38,54 @@ Please note this is mostly a single connection benchmark run on one computer.
<h3>
Embedded
</h3>
<h3>
Embedded
</h3>
<table
border=
"1"
class=
"bar"
>
<table
border=
"1"
class=
"bar"
>
<tr><th>
Test Case
</th><th>
Unit
</th><th>
H2
</th><th>
HSQLDB
</th><th>
Derby
</th></tr>
<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>
610
</td><td>
657
</td><td>
3187
</td></tr>
<tr><td>
Simple: Init
</td><td>
ms
</td><td>
547
</td><td>
532
</td><td>
2594
</td></tr>
<tr><td>
Simple: Query (random)
</td><td>
ms
</td><td>
2
97
</td><td>
312
</td><td>
1828
</td></tr>
<tr><td>
Simple: Query (random)
</td><td>
ms
</td><td>
2
50
</td><td>
391
</td><td>
1515
</td></tr>
<tr><td>
Simple: Query (sequential)
</td><td>
ms
</td><td>
203
</td><td>
266
</td><td>
176
6
</td></tr>
<tr><td>
Simple: Query (sequential)
</td><td>
ms
</td><td>
188
</td><td>
313
</td><td>
140
6
</td></tr>
<tr><td>
Simple: Update (random)
</td><td>
ms
</td><td>
1078
</td><td>
1484
</td><td>
22031
</td></tr>
<tr><td>
Simple: Update (random)
</td><td>
ms
</td><td>
812
</td><td>
1750
</td><td>
17704
</td></tr>
<tr><td>
Simple: Delete (sequential)
</td><td>
ms
</td><td>
2
34
</td><td>
281
</td><td>
7407
</td></tr>
<tr><td>
Simple: Delete (sequential)
</td><td>
ms
</td><td>
2
03
</td><td>
250
</td><td>
8843
</td></tr>
<tr><td>
Simple: Memory Usage
</td><td>
MB
</td><td>
6
</td><td>
7
</td><td>
11
</td></tr>
<tr><td>
Simple: Memory Usage
</td><td>
MB
</td><td>
7
</td><td>
11
</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: Init
</td><td>
ms
</td><td>
578
</td><td>
719
</td><td>
3328
</td></tr>
<tr><td>
BenchA: Transactions
</td><td>
ms
</td><td>
5266
</td><td>
2875
</td><td>
17500
</td></tr>
<tr><td>
BenchA: Transactions
</td><td>
ms
</td><td>
3047
</td><td>
2406
</td><td>
12907
</td></tr>
<tr><td>
BenchA: Memory Usage
</td><td>
MB
</td><td>
9
</td><td>
14
</td><td>
10
</td></tr>
<tr><td>
BenchA: Memory Usage
</td><td>
MB
</td><td>
10
</td><td>
15
</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: Init
</td><td>
ms
</td><td>
2141
</td><td>
2406
</td><td>
11562
</td></tr>
<tr><td>
BenchB: Transactions
</td><td>
ms
</td><td>
2609
</td><td>
3282
</td><td>
4250
</td></tr>
<tr><td>
BenchB: Transactions
</td><td>
ms
</td><td>
1125
</td><td>
1375
</td><td>
3625
</td></tr>
<tr><td>
BenchB: Memory Usage
</td><td>
MB
</td><td>
9
</td><td>
1
0
</td><td>
8
</td></tr>
<tr><td>
BenchB: Memory Usage
</td><td>
MB
</td><td>
9
</td><td>
1
1
</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: Init
</td><td>
ms
</td><td>
688
</td><td>
594
</td><td>
4500
</td></tr>
<tr><td>
BenchC: Transactions
</td><td>
ms
</td><td>
4359
</td><td>
75438
</td><td>
11718
</td></tr>
<tr><td>
BenchC: Transactions
</td><td>
ms
</td><td>
1906
</td><td>
64062
</td><td>
6047
</td></tr>
<tr><td>
BenchC: Memory Usage
</td><td>
MB
</td><td>
9
</td><td>
18
</td><td>
9
</td></tr>
<tr><td>
BenchC: Memory Usage
</td><td>
MB
</td><td>
11
</td><td>
17
</td><td>
11
</td></tr>
<tr><td>
Executed statements
</td><td>
#
</td><td>
594255
</td><td>
594255
</td><td>
594255
</td></tr>
<tr><td>
Executed statements
</td><td>
#
</td><td>
322929
</td><td>
322929
</td><td>
322929
</td></tr>
<tr><td>
Total time
</td><td>
ms
</td><td>
20422
</td><td>
88314
</td><td>
96375
</td></tr>
<tr><td>
Total time
</td><td>
ms
</td><td>
11485
</td><td>
74798
</td><td>
74031
</td></tr>
<tr><td>
Statements per second
</td><td>
#
</td><td>
2
9098
</td><td>
6728
</td><td>
6166
</td></tr>
<tr><td>
Statements per second
</td><td>
#
</td><td>
2
8117
</td><td>
4317
</td><td>
4362
</td></tr>
</table>
</table>
<h3>
Client-Server
</h3>
<h3>
Client-Server
</h3>
<table
border=
"1"
class=
"bar"
>
<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><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>
3125
</td><td>
3312
</td><td>
7140
</td><td>
5109
</td><td>
359
4
</td></tr>
<tr><td>
Simple: Init
</td><td>
ms
</td><td>
2782
</td><td>
2656
</td><td>
5625
</td><td>
4563
</td><td>
348
4
</td></tr>
<tr><td>
Simple: Query (random)
</td><td>
ms
</td><td>
3
390
</td><td>
3328
</td><td>
9953
</td><td>
5422
</td><td>
4812
</td></tr>
<tr><td>
Simple: Query (random)
</td><td>
ms
</td><td>
3
093
</td><td>
2703
</td><td>
6688
</td><td>
4812
</td><td>
3860
</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: Query (sequential)
</td><td>
ms
</td><td>
2969
</td><td>
2594
</td><td>
6437
</td><td>
4719
</td><td>
3625
</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: Update (random)
</td><td>
ms
</td><td>
2969
</td><td>
3531
</td><td>
18250
</td><td>
5953
</td><td>
5125
</td></tr>
<tr><td>
Simple: Delete (sequential)
</td><td>
ms
</td><td>
1
391
</td><td>
1625
</td><td>
9343
</td><td>
2750
</td><td>
2094
</td></tr>
<tr><td>
Simple: Delete (sequential)
</td><td>
ms
</td><td>
1
047
</td><td>
1250
</td><td>
6875
</td><td>
2485
</td><td>
2390
</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>
Simple: Memory Usage
</td><td>
MB
</td><td>
7
</td><td>
11
</td><td>
14
</td><td>
0
</td><td>
0
</td></tr>
<tr><td>
BenchA: Init
</td><td>
ms
</td><td>
2
781
</td><td>
2954
</td><td>
7828
</td><td>
4875
</td><td>
3859
</td></tr>
<tr><td>
BenchA: Init
</td><td>
ms
</td><td>
2
250
</td><td>
2453
</td><td>
6031
</td><td>
4328
</td><td>
3625
</td></tr>
<tr><td>
BenchA: Transactions
</td><td>
ms
</td><td>
1
3015
</td><td>
11718
</td><td>
30031
</td><td>
17672
</td><td>
13187
</td></tr>
<tr><td>
BenchA: Transactions
</td><td>
ms
</td><td>
1
0250
</td><td>
9016
</td><td>
21484
</td><td>
15609
</td><td>
11172
</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>
BenchA: Memory Usage
</td><td>
MB
</td><td>
10
</td><td>
15
</td><td>
10
</td><td>
0
</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: Init
</td><td>
ms
</td><td>
9500
</td><td>
10672
</td><td>
22609
</td><td>
19609
</td><td>
13406
</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: Transactions
</td><td>
ms
</td><td>
2734
</td><td>
2656
</td><td>
3875
</td><td>
4688
</td><td>
2531
</td></tr>
<tr><td>
BenchB: Memory Usage
</td><td>
MB
</td><td>
10
</td><td>
1
2
</td><td>
8
</td><td>
1
</td><td>
1
</td></tr>
<tr><td>
BenchB: Memory Usage
</td><td>
MB
</td><td>
10
</td><td>
1
1
</td><td>
11
</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: Init
</td><td>
ms
</td><td>
1860
</td><td>
1484
</td><td>
6890
</td><td>
2219
</td><td>
3438
</td></tr>
<tr><td>
BenchC: Transactions
</td><td>
ms
</td><td>
11391
</td><td>
77922
</td><td>
23766
</td><td>
13203
</td><td>
814
1
</td></tr>
<tr><td>
BenchC: Transactions
</td><td>
ms
</td><td>
9046
</td><td>
63266
</td><td>
18641
</td><td>
11703
</td><td>
742
1
</td></tr>
<tr><td>
BenchC: Memory Usage
</td><td>
MB
</td><td>
1
1
</td><td>
18
</td><td>
15
</td><td>
1
</td><td>
1
</td></tr>
<tr><td>
BenchC: Memory Usage
</td><td>
MB
</td><td>
1
2
</td><td>
17
</td><td>
13
</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>
Executed statements
</td><td>
#
</td><td>
322929
</td><td>
322929
</td><td>
322929
</td><td>
322929
</td><td>
322929
</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>
Total time
</td><td>
ms
</td><td>
48500
</td><td>
102281
</td><td>
123405
</td><td>
80688
</td><td>
60077
</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>
<tr><td>
Statements per second
</td><td>
#
</td><td>
6658
</td><td>
3157
</td><td>
2616
</td><td>
4002
</td><td>
5375
</td></tr>
</table>
</table>
<h3>
Benchmark Results and Comments
</h3>
<h3>
Benchmark Results and Comments
</h3>
<h4>
H2
</h4>
<h4>
H2
</h4>
<p>
<p>
Version 1.
0.78 (2008-08-28
) was used for the test.
Version 1.
1.114 (2009-06-01
) was used for the test.
For simpler operations, the performance of H2 is about the same as for HSQLDB.
For simpler operations, the performance of H2 is about the same as for HSQLDB.
For more complex queries, the query optimizer is very important.
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.
However H2 is not very fast in every case, certain kind of queries may still be slow.
...
@@ -132,7 +132,7 @@ than half as fast as H2 in default mode.
...
@@ -132,7 +132,7 @@ than half as fast as H2 in default mode.
<h4>
PostgreSQL
</h4>
<h4>
PostgreSQL
</h4>
<p>
<p>
Version 8.3.
4
was used for the test.
Version 8.3.
7
was used for the test.
The following options where changed in postgresql.conf:
The following options where changed in postgresql.conf:
fsync = off, commit_delay = 1000.
fsync = off, commit_delay = 1000.
PostgreSQL is run in server mode. It looks like the base performance is slower than
PostgreSQL is run in server mode. It looks like the base performance is slower than
...
@@ -142,7 +142,7 @@ The memory usage number is incorrect, because only the memory usage of the JDBC
...
@@ -142,7 +142,7 @@ The memory usage number is incorrect, because only the memory usage of the JDBC
<h4>
MySQL
</h4>
<h4>
MySQL
</h4>
<p>
<p>
Version 5.
0.67
was used for the test.
Version 5.
1.34-community
was used for the test.
MySQL was run with the InnoDB backend.
MySQL was run with the InnoDB backend.
The setting innodb_flush_log_at_trx_commit
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
(found in the my.ini file) was set to 0. Otherwise (and by default), MySQL is really slow
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
b34ed604
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
b34ed604
h2/src/main/org/h2/res/javadoc.properties
浏览文件 @
b34ed604
h2/src/test/org/h2/test/bench/test.properties
浏览文件 @
b34ed604
...
@@ -9,7 +9,7 @@ db1 = H2, org.h2.Driver, jdbc:h2:data/test;LOCK_TIMEOUT=10000;LOCK_MODE=3, sa, s
...
@@ -9,7 +9,7 @@ db1 = H2, org.h2.Driver, jdbc:h2:data/test;LOCK_TIMEOUT=10000;LOCK_MODE=3, sa, s
#xdb5 = H2_PG, org.postgresql.Driver, jdbc:postgresql://localhost:5435/h2test, sa, sa
#xdb5 = H2_PG, org.postgresql.Driver, jdbc:postgresql://localhost:5435/h2test, sa, sa
db2
=
HSQLDB, org.hsqldb.jdbcDriver, jdbc:hsqldb:data/test;hsqldb.default_table_type=cached;sql.enforce_size=true, sa
db2
=
HSQLDB, org.hsqldb.jdbcDriver, jdbc:hsqldb:data/test;hsqldb.default_table_type=cached;sql.enforce_size=true, sa
db3
=
Derby, org.apache
T
.derby.jdbc.EmbeddedDriver, jdbc:derby:data/derby;create=true, sa, sa
db3
=
Derby, org.apache.derby.jdbc.EmbeddedDriver, jdbc:derby:data/derby;create=true, sa, sa
db4
=
H2, org.h2.Driver, jdbc:h2:tcp://localhost/data/testServer;LOCK_TIMEOUT=10000;LOCK_MODE=3, sa, sa
db4
=
H2, org.h2.Driver, jdbc:h2:tcp://localhost/data/testServer;LOCK_TIMEOUT=10000;LOCK_MODE=3, sa, sa
db5
=
HSQLDB, org.hsqldb.jdbcDriver, jdbc:hsqldb:hsql://localhost/xdb, sa
db5
=
HSQLDB, org.hsqldb.jdbcDriver, jdbc:hsqldb:hsql://localhost/xdb, sa
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论