Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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
Levin Zimmermann
neoppod
Commits
cfde4271
Commit
cfde4271
authored
Oct 05, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a4a18b55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
go/neo/t/neotest
go/neo/t/neotest
+9
-1
No files found.
go/neo/t/neotest
View file @
cfde4271
...
@@ -601,6 +601,7 @@ cpustat() {
...
@@ -601,6 +601,7 @@ cpustat() {
#echo >&2 "--------"
#echo >&2 "--------"
#sleep 1
#sleep 1
out
=
"
$(
"
$@
"
)
"
out
=
"
$(
"
$@
"
)
"
ret
=
$?
uendv
=(
`
statev_usage
`
)
uendv
=(
`
statev_usage
`
)
stat
=
"#"
stat
=
"#"
...
@@ -619,6 +620,8 @@ cpustat() {
...
@@ -619,6 +620,8 @@ cpustat() {
echo
-n
"
$out
"
echo
-n
"
$out
"
echo
-e
"
\t
$stat
"
echo
-e
"
\t
$stat
"
fi
fi
return
$ret
}
}
Nrun
=
4
# repeat benchmarks N time
Nrun
=
4
# repeat benchmarks N time
...
@@ -765,8 +768,9 @@ cmd_bench-cluster() {
...
@@ -765,8 +768,9 @@ cmd_bench-cluster() {
sizev
=
"56 1472"
sizev
=
"56 1472"
for
size
in
$sizev
;
do
for
size
in
$sizev
;
do
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(ping
${
size
}
B)"
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(ping
${
size
}
B)"
sudo
-n
ping
-i0
-w
3
-s
$size
-q
$peer
||
echo
"# skipped -> enable ping in sudo for
`
whoami
`
@
`
hostname
`
"
$profile
sudo
-n
ping
-i0
-w
3
-s
$size
-q
$peer
||
echo
"# skipped -> enable ping in sudo for
`
whoami
`
@
`
hostname
`
"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(ping
${
size
}
B)"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(ping
${
size
}
B)"
# TODO profile remotely
on
$url
"sudo -n ping -i0 -w3 -s
${
size
}
-q
\$
(echo
\$
{SSH_CONNECTION%% *}) || echo
\\\"
# skipped -> enable ping in sudo for
\`
whoami
\`
@
\`
hostname
\`\\\"
"
on
$url
"sudo -n ping -i0 -w3 -s
${
size
}
-q
\$
(echo
\$
{SSH_CONNECTION%% *}) || echo
\\\"
# skipped -> enable ping in sudo for
\`
whoami
\`
@
\`
hostname
\`\\\"
"
done
done
...
@@ -774,22 +778,26 @@ cmd_bench-cluster() {
...
@@ -774,22 +778,26 @@ cmd_bench-cluster() {
sizev
=
"1 1472 4096"
sizev
=
"1 1472 4096"
for
size
in
$sizev
;
do
for
size
in
$sizev
;
do
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
# TODO profile remotely
on
$url
"nohup lat_tcp -s </dev/null >/dev/null 2>/dev/null &"
on
$url
"nohup lat_tcp -s </dev/null >/dev/null 2>/dev/null &"
nrun lat_tcp
-m
$size
$peer
nrun lat_tcp
-m
$size
$peer
lat_tcp
-S
$peer
lat_tcp
-S
$peer
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.go -s)"
echo
-e
"
\n
#
`
hostname
`
⇄
$peer
(lat_tcp.c
${
size
}
B -> lat_tcp.go -s)"
# TODO profile remotely
on
$url
"nohup lat_tcp_go -s </dev/null >/dev/null 2>/dev/null &"
on
$url
"nohup lat_tcp_go -s </dev/null >/dev/null 2>/dev/null &"
nrun lat_tcp
-m
$size
$peer
nrun lat_tcp
-m
$size
$peer
lat_tcp
-S
$peer
lat_tcp
-S
$peer
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(lat_tcp.c
${
size
}
B -> lat_tcp.c -s)"
lat_tcp
-s
lat_tcp
-s
# TODO profile remotely
nrun on
$url
"lat_tcp -m
$size
\$
{SSH_CONNECTION%% *}"
nrun on
$url
"lat_tcp -m
$size
\$
{SSH_CONNECTION%% *}"
lat_tcp
-S
localhost
lat_tcp
-S
localhost
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(lat_tcp.c
${
size
}
B -> lat_tcp.go -s)"
echo
-e
"
\n
#
$peer
⇄
`
hostname
`
(lat_tcp.c
${
size
}
B -> lat_tcp.go -s)"
lat_tcp_go
-s
2>/dev/null &
lat_tcp_go
-s
2>/dev/null &
# TODO profile remotely
nrun on
$url
"lat_tcp -m
$size
\$
{SSH_CONNECTION%% *}"
nrun on
$url
"lat_tcp -m
$size
\$
{SSH_CONNECTION%% *}"
lat_tcp
-S
localhost
lat_tcp
-S
localhost
done
done
...
...
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