Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nemu3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
nemu3
Commits
f1107ccf
Commit
f1107ccf
authored
Aug 23, 2010
by
Martín Ferrari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pending changes to the benchmark scripts
parent
ca244b1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
benchmarks/linear-raw-throughput.py
benchmarks/linear-raw-throughput.py
+17
-2
benchmarks/udp-perf.c
benchmarks/udp-perf.c
+0
-2
No files found.
benchmarks/linear-raw-throughput.py
View file @
f1107ccf
...
...
@@ -154,9 +154,24 @@ def main():
return
data
=
out
.
split
(
" "
)
data
=
map
(
lambda
s
:
s
.
partition
(
":"
)[
2
],
data
)
data
=
dict
(
map
(
lambda
s
:
s
.
partition
(
":"
)[::
2
],
data
))
if
sorted
(
data
.
keys
())
!=
sorted
([
"brx"
,
"prx"
,
"pksz"
,
"plsz"
,
"err"
,
"mind"
,
"avgd"
,
"maxd"
,
"jit"
,
"time"
]):
raise
RuntimeError
(
"Invalid output from udp-perf"
)
data
[
"nodes"
]
=
nr
data
[
"bridge"
]
=
int
(
not
use_p2p
)
data
[
"cfg_dly"
]
=
delay
if
delay
else
""
data
[
"cfg_bw"
]
=
bandwidth
if
bandwidth
else
""
data
[
"cfg_jit"
]
=
jitter
if
jitter
else
""
res
=
[]
for
i
in
[
"nodes"
,
"bridge"
,
"cfg_dly"
,
"cfg_bw"
,
"cfg_jit"
,
"brx"
,
"prx"
,
"pksz"
,
"plsz"
,
"err"
,
"mind"
,
"avgd"
,
"maxd"
,
"jit"
,
"time"
]:
res
.
append
(
data
[
i
])
writer
=
csv
.
writer
(
sys
.
stdout
)
writer
.
writerow
(
[
" "
.
join
(
sys
.
argv
[
1
:])]
+
data
)
writer
.
writerow
(
res
)
def
ip2dec
(
ip
):
match
=
re
.
search
(
r'^(\
d+)
\.(\
d+)
\.(\
d+)
\.(\
d+)$
', ip)
...
...
benchmarks/udp-perf.c
View file @
f1107ccf
...
...
@@ -279,8 +279,6 @@ static void run_server(int port, uint64_t max_time, uint64_t max_pkts,
printf
(
"mind:%ld avgd:%ld maxd:%ld jit:%lf time:%ld "
,
min_delay
,
tot_delay
/
preceived
,
max_delay
,
jitter
,
now
-
start
);
printf
(
"bw:%ld
\n
"
,
(
long
)(
1
.
0L
*
(
breceived
*
8000000
)
/
(
now
-
start
)));
}
status
=
close
(
fd
);
...
...
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