Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
31
Issue boards
Milestones
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
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
FINAM
finam
Commits
94d51d77
Commit
94d51d77
authored
2 years ago
by
Martin Lange
Browse files
Options
Downloads
Patches
Plain Diff
sort bencmarks by name, increase medium grid size for benchmarks
parent
1c4cb6f2
No related branches found
No related tags found
1 merge request
!207
Set up benchmarks
Pipeline
#131894
passed with stages
in 4 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
benchmarks/data/test_tools.py
+8
-8
8 additions, 8 deletions
benchmarks/data/test_tools.py
with
9 additions
and
9 deletions
.gitlab-ci.yml
+
1
−
1
View file @
94d51d77
...
...
@@ -35,7 +35,7 @@ benchmark:
stage
:
test
script
:
-
pip3 install --editable .[test]
-
python -m pytest -v benchmarks/ --benchmark-histogram bench/bench
-
python -m pytest -v benchmarks/ --benchmark-histogram bench/bench
--benchmark-sort name
artifacts
:
paths
:
-
bench
...
...
This diff is collapsed.
Click to expand it.
benchmarks/data/test_tools.py
+
8
−
8
View file @
94d51d77
...
...
@@ -31,9 +31,9 @@ class TestCheckXarray(unittest.TestCase):
_result
=
self
.
benchmark
(
check
,
xdata
=
xdata
,
name
=
"
test
"
,
info
=
info
,
time
=
time
)
@pytest.mark.benchmark
(
group
=
"
tools
"
)
def
test_check_xarray_02_12
8x64
(
self
):
def
test_check_xarray_02_
5
12
x256
(
self
):
time
=
dt
.
datetime
(
2000
,
1
,
1
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
12
8
,
6
4
)),
units
=
"
m
"
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
5
12
,
25
6
)),
units
=
"
m
"
)
xdata
=
full
(
0.0
,
"
test
"
,
info
,
time
)
_result
=
self
.
benchmark
(
check
,
xdata
=
xdata
,
name
=
"
test
"
,
info
=
info
,
time
=
time
)
...
...
@@ -54,9 +54,9 @@ class TestToXarray(unittest.TestCase):
)
@pytest.mark.benchmark
(
group
=
"
tools
"
)
def
test_to_xarray_02_12
8x64
(
self
):
def
test_to_xarray_02_
5
12
x256
(
self
):
time
=
dt
.
datetime
(
2000
,
1
,
1
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
12
8
,
6
4
)),
units
=
"
m
"
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
5
12
,
25
6
)),
units
=
"
m
"
)
xdata
=
full
(
0.0
,
"
test
"
,
info
,
time
)
data
=
strip_data
(
xdata
)
_result
=
self
.
benchmark
(
...
...
@@ -129,21 +129,21 @@ class TestUnitsTools(unittest.TestCase):
_result
=
self
.
benchmark
(
get_units
,
xdata
=
xdata
)
@pytest.mark.benchmark
(
group
=
"
tools
"
)
def
test_to_units_2x1
(
self
):
def
test_to_units_
01_
2x1
(
self
):
time
=
dt
.
datetime
(
2000
,
1
,
1
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
2
,
1
)),
units
=
"
m
"
)
xdata
=
full
(
0.0
,
"
test
"
,
info
,
time
)
_result
=
self
.
benchmark
(
to_units
,
xdata
=
xdata
,
units
=
"
in
"
)
@pytest.mark.benchmark
(
group
=
"
tools
"
)
def
test_to_units_
128x64
(
self
):
def
test_to_units_
02_512x256
(
self
):
time
=
dt
.
datetime
(
2000
,
1
,
1
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
12
8
,
6
4
)),
units
=
"
m
"
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
5
12
,
25
6
)),
units
=
"
m
"
)
xdata
=
full
(
0.0
,
"
test
"
,
info
,
time
)
_result
=
self
.
benchmark
(
to_units
,
xdata
=
xdata
,
units
=
"
in
"
)
@pytest.mark.benchmark
(
group
=
"
tools
"
)
def
test_to_units_2048x1024
(
self
):
def
test_to_units_
03_
2048x1024
(
self
):
time
=
dt
.
datetime
(
2000
,
1
,
1
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
2048
,
1024
)),
units
=
"
m
"
)
xdata
=
full
(
0.0
,
"
test
"
,
info
,
time
)
...
...
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