Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
e813d132
Commit
e813d132
authored
2 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
runner: minor variable renaming
This prepare a wider refactoring.
parent
01ac3c41
No related branches found
Branches containing commit
No related tags found
1 merge request
!12
runner: factor out some part of the benchmark class
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python-libs/poulpe/runner.py
+6
-6
6 additions, 6 deletions
python-libs/poulpe/runner.py
with
6 additions
and
6 deletions
python-libs/poulpe/runner.py
+
6
−
6
View file @
e813d132
...
...
@@ -125,7 +125,7 @@
self
.
cwd
=
get_var
(
key
)
def
run_one
(
bin_env_path
,
data_env_path
,
benchmark
,
result
):
def
run_one
(
bin_env_path
,
data_env_path
,
benchmark
_path
,
result
):
result_data
=
{}
result_data
[
'
run
'
]
=
{}
result_data
[
'
run
'
][
"
timestamp
"
]
=
time
.
time
()
...
...
@@ -140,6 +140,6 @@
data_env_data
=
poulpe
.
get_data
(
data_env_desc
)
result_data
[
'
data-env-vars
'
]
=
data_env_data
[
'
data-env-vars
'
]
benchmark
_data
=
get_benchmark
(
benchmark
)
assert
benchmark
_data
is
not
None
,
benchmark
benchmark
=
get_benchmark
(
benchmark
_path
)
assert
benchmark
is
not
None
,
benchmark
_path
result_data
[
'
benchmark
'
]
=
{}
...
...
@@ -145,8 +145,8 @@
result_data
[
'
benchmark
'
]
=
{}
result_data
[
'
benchmark
'
][
'
name
'
]
=
benchmark
_data
.
name
variants
=
benchmark
_data
.
selected_variants
result_data
[
'
benchmark
'
][
'
name
'
]
=
benchmark
.
name
variants
=
benchmark
.
selected_variants
if
variants
:
result_data
[
'
benchmark
'
][
'
variants
'
]
=
variants
# building the benchmark scenarion, that will likely changes often and quickly
...
...
@@ -148,9 +148,9 @@
if
variants
:
result_data
[
'
benchmark
'
][
'
variants
'
]
=
variants
# building the benchmark scenarion, that will likely changes often and quickly
cmd
=
SimpleCommand
(
benchmark
_data
)
cmd
=
SimpleCommand
(
benchmark
)
cmd
.
apply_data_env
(
data_env_data
)
r
=
_time_command
(
bin_env_path
,
data_env_path
,
cmd
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment