Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
e4fa538d
提交
e4fa538d
authored
4月 04, 2014
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tests
上级
2304e46a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
13 行增加
和
32 行删除
+13
-32
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+13
-32
没有找到文件。
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
e4fa538d
...
@@ -234,8 +234,10 @@ java org.h2.test.TestAll timer
...
@@ -234,8 +234,10 @@ java org.h2.test.TestAll timer
*/
*/
;
/**
private
static
final
boolean
MV_STORE
=
true
;
* Whether the MVStore storage is used.
*/
public
final
boolean
mvStore
=
Constants
.
VERSION_MINOR
>=
4
;
/**
/**
* If the test should run with many rows.
* If the test should run with many rows.
...
@@ -252,11 +254,6 @@ java org.h2.test.TestAll timer
...
@@ -252,11 +254,6 @@ java org.h2.test.TestAll timer
*/
*/
public
boolean
memory
;
public
boolean
memory
;
/**
* Whether to use the MVStore.
*/
public
boolean
mvStore
;
/**
/**
* Whether the test is running with code coverage.
* Whether the test is running with code coverage.
*/
*/
...
@@ -270,7 +267,7 @@ java org.h2.test.TestAll timer
...
@@ -270,7 +267,7 @@ java org.h2.test.TestAll timer
/**
/**
* If the multi version concurrency control mode should be used.
* If the multi version concurrency control mode should be used.
*/
*/
public
boolean
mvcc
;
public
boolean
mvcc
=
mvStore
;
/**
/**
* The cipher to use (null for unencrypted).
* The cipher to use (null for unencrypted).
...
@@ -434,7 +431,6 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -434,7 +431,6 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
test
.
reopen
=
true
;
test
.
reopen
=
true
;
TestReopen
reopen
=
new
TestReopen
();
TestReopen
reopen
=
new
TestReopen
();
reopen
.
init
();
reopen
.
init
();
reopen
.
config
.
mvStore
=
MV_STORE
;
FilePathRec
.
setRecorder
(
reopen
);
FilePathRec
.
setRecorder
(
reopen
);
test
.
runTests
();
test
.
runTests
();
}
else
if
(
"crash"
.
equals
(
args
[
0
]))
{
}
else
if
(
"crash"
.
equals
(
args
[
0
]))
{
...
@@ -470,28 +466,14 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -470,28 +466,14 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
prof
.
depth
=
16
;
prof
.
depth
=
16
;
prof
.
interval
=
1
;
prof
.
interval
=
1
;
prof
.
startCollecting
();
prof
.
startCollecting
();
if
(
test
.
mvStore
)
{
TestPerformance
.
main
(
"-init"
,
"-db"
,
"9"
,
"-size"
,
"1000"
);
TestPerformance
.
main
(
"-init"
,
"-db"
,
"9"
,
"-size"
,
"1000"
);
}
else
{
TestPerformance
.
main
(
"-init"
,
"-db"
,
"1"
);
}
prof
.
stopCollecting
();
prof
.
stopCollecting
();
System
.
out
.
println
(
prof
.
getTop
(
30
));
System
.
out
.
println
(
prof
.
getTop
(
30
));
if
(
test
.
mvStore
)
{
TestPerformance
.
main
(
"-init"
,
"-db"
,
"1"
,
"-size"
,
"1000"
);
prof
=
new
Profiler
();
prof
.
stopCollecting
();
prof
.
depth
=
16
;
System
.
out
.
println
(
prof
.
getTop
(
3
));
prof
.
interval
=
1
;
TestPerformance
.
main
(
"-init"
,
"-db"
,
"1"
,
"-size"
,
"1000"
);
prof
.
startCollecting
();
TestPerformance
.
main
(
"-init"
,
"-db"
,
"9"
,
"-size"
,
"1000"
);
TestPerformance
.
main
(
"-init"
,
"-db"
,
"1"
,
"-size"
,
"1000"
);
prof
.
stopCollecting
();
System
.
out
.
println
(
prof
.
getTop
(
3
));
TestPerformance
.
main
(
"-init"
,
"-db"
,
"1"
,
"-size"
,
"1000"
);
TestPerformance
.
main
(
"-init"
,
"-db"
,
"9"
,
"-size"
,
"1000"
);
}
// Recover.execute("data", null);
// RunScript.execute("jdbc:h2:data/test2",
// "sa1", "sa1", "data/test.h2.sql", null, false);
// Recover.execute("data", null);
}
}
System
.
out
.
println
(
TestBase
.
formatTime
(
System
.
out
.
println
(
TestBase
.
formatTime
(
System
.
currentTimeMillis
()
-
time
)
+
" total"
);
System
.
currentTimeMillis
()
-
time
)
+
" total"
);
...
@@ -529,11 +511,10 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
...
@@ -529,11 +511,10 @@ kill -9 `jps -l | grep "org.h2.test." | cut -d " " -f 1`
coverage
=
isCoverage
();
coverage
=
isCoverage
();
mvStore
=
MV_STORE
;
smallLog
=
big
=
networked
=
memory
=
ssl
=
false
;
smallLog
=
big
=
networked
=
memory
=
ssl
=
false
;
diskResult
=
traceSystemOut
=
diskUndo
=
false
;
diskResult
=
traceSystemOut
=
diskUndo
=
false
;
mvcc
=
traceTest
=
stopOnError
=
false
;
mvcc
=
mvStore
;
traceTest
=
stopOnError
=
false
;
defrag
=
false
;
defrag
=
false
;
traceLevelFile
=
throttle
=
0
;
traceLevelFile
=
throttle
=
0
;
cipher
=
null
;
cipher
=
null
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论