Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
7667ff29
提交
7667ff29
authored
9月 26, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
e4084173
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
42 行增加
和
42 行删除
+42
-42
performance.png
h2/src/docsrc/html/images/performance.png
+0
-0
performance.html
h2/src/docsrc/html/performance.html
+41
-41
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+1
-1
没有找到文件。
h2/src/docsrc/html/images/performance.png
查看替换文件 @
e4084173
浏览文件 @
7667ff29
2.5 KB
|
W:
|
H:
2.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
h2/src/docsrc/html/performance.html
浏览文件 @
7667ff29
...
@@ -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>
719
</td><td>
1344
</td><td>
2906
</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>
328
</td><td>
328
</td><td>
157
8
</td></tr>
<tr><td>
Simple: Query (random)
</td><td>
ms
</td><td>
297
</td><td>
312
</td><td>
182
8
</td></tr>
<tr><td>
Simple: Query (sequential)
</td><td>
ms
</td><td>
2
50
</td><td>
250
</td><td>
1484
</td></tr>
<tr><td>
Simple: Query (sequential)
</td><td>
ms
</td><td>
2
03
</td><td>
266
</td><td>
1766
</td></tr>
<tr><td>
Simple: Update (random)
</td><td>
ms
</td><td>
688
</td><td>
1828
</td><td>
14922
</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>
2
03
</td><td>
265
</td><td>
10235
</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: Memory Usage
</td><td>
MB
</td><td>
6
</td><td>
9
</td><td>
11
</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>
422
</td><td>
672
</td><td>
4328
</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>
6969
</td><td>
3531
</td><td>
16719
</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>
10
</td><td>
10
</td><td>
9
</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>
1703
</td><td>
3937
</td><td>
13844
</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>
2
360
</td><td>
1328
</td><td>
5797
</td></tr>
<tr><td>
BenchB: Transactions
</td><td>
ms
</td><td>
2
609
</td><td>
3282
</td><td>
4250
</td></tr>
<tr><td>
BenchB: Memory Usage
</td><td>
MB
</td><td>
8
</td><td>
9
</td><td>
8
</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>
718
</td><td>
468
</td><td>
5328
</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>
2688
</td><td>
60828
</td><td>
7109
</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>
10
</td><td>
14
</td><td>
9
</td></tr>
<tr><td>
BenchC: Memory Usage
</td><td>
MB
</td><td>
9
</td><td>
18
</td><td>
9
</td></tr>
<tr><td>
Executed
S
tatements
</td><td>
#
</td><td>
594255
</td><td>
594255
</td><td>
594255
</td></tr>
<tr><td>
Executed
s
tatements
</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>
Total
time
</td><td>
ms
</td><td>
20422
</td><td>
88314
</td><td>
96375
</td></tr>
<tr><td>
Statement
per Second
</td><td>
#
</td><td>
34857
</td><td>
7946
</td><td>
7053
</td></tr>
<tr><td>
Statement
s per second
</td><td>
#
</td><td>
29098
</td><td>
6728
</td><td>
6166
</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>
2516
</td><td>
3109
</td><td>
7078
</td><td>
4625
</td><td>
2859
</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>
2890
</td><td>
2547
</td><td>
8843
</td><td>
7703
</td><td>
3203
</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>
2953
</td><td>
2407
</td><td>
8516
</td><td>
6953
</td><td>
3516
</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>
3
141
</td><td>
3671
</td><td>
18125
</td><td>
7797
</td><td>
4687
</td></tr>
<tr><td>
Simple: Update (random)
</td><td>
ms
</td><td>
3
437
</td><td>
4562
</td><td>
26594
</td><td>
6766
</td><td>
5703
</td></tr>
<tr><td>
Simple: Delete (sequential)
</td><td>
ms
</td><td>
1
000
</td><td>
1219
</td><td>
12891
</td><td>
3547
</td><td>
1938
</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: Memory Usage
</td><td>
MB
</td><td>
6
</td><td>
10
</td><td>
14
</td><td>
0
</td><td>
1
</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>
2
266
</td><td>
2484
</td><td>
7797
</td><td>
4234
</td><td>
4703
</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: Transactions
</td><td>
ms
</td><td>
1
1078
</td><td>
8875
</td><td>
26328
</td><td>
18641
</td><td>
11
187
</td></tr>
<tr><td>
BenchA: Transactions
</td><td>
ms
</td><td>
1
3015
</td><td>
11718
</td><td>
30031
</td><td>
17672
</td><td>
13
187
</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>
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>
8422
</td><td>
12531
</td><td>
27734
</td><td>
18609
</td><td>
12312
</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>
4125
</td><td>
3344
</td><td>
7875
</td><td>
7922
</td><td>
3266
</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>
9
</td><td>
10
</td><td>
8
</td><td>
0
</td><td>
1
</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>
1781
</td><td>
1609
</td><td>
6797
</td><td>
2453
</td><td>
3328
</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>
8453
</td><td>
62469
</td><td>
19859
</td><td>
11516
</td><td>
7062
</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>
1
0
</td><td>
15
</td><td>
9
</td><td>
0
</td><td>
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>
Executed
S
tatements
</td><td>
#
</td><td>
594255
</td><td>
594255
</td><td>
594255
</td><td>
594255
</td><td>
594255
</td></tr>
<tr><td>
Executed
s
tatements
</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>
Total
time
</td><td>
ms
</td><td>
61530
</td><td>
127250
</td><td>
170108
</td><td>
90545
</td><td>
69343
</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>
Statement
s per second
</td><td>
#
</td><td>
9657
</td><td>
4669
</td><td>
3493
</td><td>
6563
</td><td>
8569
</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.
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 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.
...
@@ -98,7 +98,7 @@ The open/close time is almost fixed, because of the file locking protocol: The e
...
@@ -98,7 +98,7 @@ The open/close time is almost fixed, because of the file locking protocol: The e
<h4>
HSQLDB
</h4>
<h4>
HSQLDB
</h4>
<p>
<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),
Cached tables are used in this test (hsqldb.default_table_type=cached),
and the write delay is 1 second (SET WRITE_DELAY 1).
and the write delay is 1 second (SET WRITE_DELAY 1).
HSQLDB is fast when using simple operations.
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
...
@@ -118,7 +118,7 @@ The reason is, a backup of the database is created whenever the database is open
<h4>
Derby
</h4>
<h4>
Derby
</h4>
<p>
<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.
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.
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.
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
...
@@ -127,7 +127,7 @@ If it is switched off during the whole test, the results are about 20% better fo
<h4>
PostgreSQL
</h4>
<h4>
PostgreSQL
</h4>
<p>
<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:
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
...
@@ -137,7 +137,7 @@ The memory usage number is incorrect, because only the memory usage of the JDBC
...
@@ -137,7 +137,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.
22
was used for the test.
Version 5.0.
67
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/test/org/h2/test/TestAll.java
浏览文件 @
7667ff29
...
@@ -276,7 +276,7 @@ java org.h2.test.TestAll timer
...
@@ -276,7 +276,7 @@ java org.h2.test.TestAll timer
/*
/*
14.zip
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
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论