Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
b2341efa
Commit
b2341efa
authored
May 07, 2020
by
Mathieu Giraud
Browse files
benchmark-releases.py: more reliable test
parent
03bf5afc
Pipeline
#142719
passed with stages
in 43 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
algo/tests/benchmark-releases.py
View file @
b2341efa
...
...
@@ -231,12 +231,13 @@ def bench_line(f, release, stats, index, format='%8.2f', previous_release=None,
if
previous_release
:
if
stats
[
tag
,
previous_release
]
is
not
None
:
previous_val
=
stats
[
tag
,
previous_release
][
index
]
if
val
/
previous_val
>=
1
+
WARN_RATIO
:
b
=
color
(
ANSI
.
RED
,
b
)
if
colorize
else
'!'
+
b
[
1
:]
warned
=
True
elif
val
/
previous_val
<=
1
-
WARN_RATIO
:
b
=
color
(
ANSI
.
GREEN
,
b
)
if
colorize
else
'!'
+
b
[
1
:]
warned
=
True
if
previous_val
:
if
val
/
previous_val
>=
1
+
WARN_RATIO
:
b
=
color
(
ANSI
.
RED
,
b
)
if
colorize
else
'!'
+
b
[
1
:]
warned
=
True
elif
val
/
previous_val
<=
1
-
WARN_RATIO
:
b
=
color
(
ANSI
.
GREEN
,
b
)
if
colorize
else
'!'
+
b
[
1
:]
warned
=
True
else
:
b
=
'%8s'
%
'x'
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment