Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
e3ae36dc
O
Opencv
项目概览
Greenplum
/
Opencv
12 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e3ae36dc
编写于
6月 21, 2013
作者:
R
Roman Donchenko
提交者:
OpenCV Buildbot
6月 21, 2013
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1033 from SpecLad:xls++
上级
e600beb4
57317c31
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
modules/ts/misc/xls-report.py
modules/ts/misc/xls-report.py
+10
-10
未找到文件。
modules/ts/misc/xls-report.py
浏览文件 @
e3ae36dc
...
...
@@ -4,6 +4,7 @@ from __future__ import division
import
ast
import
logging
import
numbers
import
os
,
os
.
path
import
re
...
...
@@ -52,8 +53,7 @@ def collect_xml(collection, configuration, xml_fullname):
for
test
in
sorted
(
parseLogFile
(
xml_fullname
)):
test_results
=
module_tests
.
setdefault
((
test
.
shortName
(),
test
.
param
()),
{})
if
test
.
status
==
'run'
:
test_results
[
configuration
]
=
test
.
get
(
"gmean"
)
test_results
[
configuration
]
=
test
.
get
(
"gmean"
)
if
test
.
status
==
'run'
else
test
.
status
def
main
():
arg_parser
=
ArgumentParser
(
description
=
'Build an XLS performance report.'
)
...
...
@@ -79,7 +79,7 @@ def main():
sheet_conf
=
ast
.
literal_eval
(
sheet_conf_file
.
read
())
except
Exception
:
sheet_conf
=
{}
logging
.
debug
(
'no sheet.conf for
{}'
.
format
(
sheet_path
)
)
logging
.
debug
(
'no sheet.conf for
%s'
,
sheet_path
)
sheet_conf
=
dict
(
global_conf
.
items
()
+
sheet_conf
.
items
())
...
...
@@ -90,14 +90,14 @@ def main():
config_names
=
[
p
for
p
in
os
.
listdir
(
sheet_path
)
if
os
.
path
.
isdir
(
os
.
path
.
join
(
sheet_path
,
p
))]
except
Exception
as
e
:
logging
.
warning
(
e
)
logging
.
warning
(
'error while determining configuration names for %s: %s'
,
sheet_path
,
e
)
continue
collection
=
{}
for
configuration
,
configuration_path
in
\
[(
c
,
os
.
path
.
join
(
sheet_path
,
c
))
for
c
in
config_names
]:
logging
.
info
(
'processing
{}'
.
format
(
configuration_path
)
)
logging
.
info
(
'processing
%s'
,
configuration_path
)
for
xml_fullname
in
glob
(
os
.
path
.
join
(
configuration_path
,
'*.xml'
)):
collect_xml
(
collection
,
configuration
,
xml_fullname
)
...
...
@@ -117,7 +117,7 @@ def main():
for
i
,
caption
in
enumerate
([
'Module'
,
'Test'
,
'Image
\n
size'
,
'Data
\n
type'
,
'Parameters'
]
+
config_names
+
[
None
]
+
[
comp
[
'
from'
]
+
'
\n
vs
\n
'
+
comp
[
'to
'
]
for
comp
in
sheet_comparisons
]):
+
[
comp
[
'
to'
]
+
'
\n
vs
\n
'
+
comp
[
'from
'
]
for
comp
in
sheet_comparisons
]):
sheet
.
row
(
0
).
write
(
i
,
caption
,
header_style
)
row
=
1
...
...
@@ -143,13 +143,13 @@ def main():
sheet
.
write
(
row
,
5
+
i
,
None
,
no_time_style
)
for
i
,
comp
in
enumerate
(
sheet_comparisons
):
left
=
configs
.
get
(
comp
[
"from"
])
right
=
configs
.
get
(
comp
[
"to"
])
cmp_from
=
configs
.
get
(
comp
[
"from"
])
cmp_to
=
configs
.
get
(
comp
[
"to"
])
col
=
5
+
len
(
config_names
)
+
1
+
i
if
left
is
not
None
and
right
is
not
None
:
if
isinstance
(
cmp_from
,
numbers
.
Number
)
and
isinstance
(
cmp_to
,
numbers
.
Number
)
:
try
:
speedup
=
left
/
right
speedup
=
cmp_from
/
cmp_to
sheet
.
write
(
row
,
col
,
speedup
,
good_speedup_style
if
speedup
>
1.1
else
bad_speedup_style
if
speedup
<
0.9
else
speedup_style
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录