Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
ed2787dc
Commit
ed2787dc
authored
Apr 16, 2019
by
Martin Reinecke
Browse files
tweak benchmark code
parent
9fb21e4b
Pipeline
#47046
passed with stages
in 16 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/bench_gridder.py
View file @
ed2787dc
...
...
@@ -11,10 +11,10 @@ np.random.seed(40)
N0s
,
a0s
,
b0s
,
c0s
=
[],
[],
[],
[]
N1s
,
a1s
,
b1s
,
c1s
=
[],
[],
[],
[]
for
ii
in
range
(
1
,
8
):
for
ii
in
range
(
1
0
,
23
):
nu
=
1024
nv
=
1024
N
=
int
(
10
**
ii
)
N
=
int
(
2
**
ii
)
print
(
'N = {}'
.
format
(
N
))
uv
=
np
.
random
.
rand
(
N
,
2
)
-
0.5
...
...
@@ -70,6 +70,8 @@ print('FFT shape', res.shape)
plt
.
scatter
(
N0s
,
a0s
,
label
=
'Gridder mr'
)
plt
.
scatter
(
N1s
,
a1s
,
marker
=
'^'
,
label
=
'NFFT'
)
plt
.
legend
()
# no idea why this is necessary, but if it is omitted, the range is wrong
plt
.
ylim
(
min
(
a0s
+
a1s
),
max
(
a0s
+
a1s
))
plt
.
ylabel
(
'time [s]'
)
plt
.
title
(
'Initialization'
)
plt
.
loglog
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment