diff --git a/test/plot_perf.sh b/test/plot_perf.sh index f04cf505..c5eaaa98 100755 --- a/test/plot_perf.sh +++ b/test/plot_perf.sh @@ -69,25 +69,25 @@ run(){ case $mode in readlist) - /usr/bin/time -p for (( i=0; i<$reqs; i++ )); do + time -p for (( i=0; i<$reqs; i++ )); do rnd=$(( ( RANDOM % $nr ) )) echo "]]>]]>" done | $clixon_netconf -qf $cfg -y $fyang > /dev/null ;; writelist) - /usr/bin/time -p for (( i=0; i<$reqs; i++ )); do + time -p for (( i=0; i<$reqs; i++ )); do rnd=$(( ( RANDOM % $nr ) )) echo "$rnd$rnd]]>]]>" done | $clixon_netconf -qf $cfg -y $fyang > /dev/null ;; restreadlist) - /usr/bin/time -p for (( i=0; i<$reqs; i++ )); do + time -p for (( i=0; i<$reqs; i++ )); do rnd=$(( ( RANDOM % $nr ) )) curl -sSG http://localhost/restconf/data/x/y=$rnd,$rnd > /dev/null done ;; writeleaflist) - /usr/bin/time -p for (( i=0; i<$reqs; i++ )); do + time -p for (( i=0; i<$reqs; i++ )); do rnd=$(( ( RANDOM % $nr ) )) echo "$rnd]]>]]>" done | $clixon_netconf -qf $cfg -y $fyang > /dev/null diff --git a/test/test_perf.sh b/test/test_perf.sh index e47c7149..d43c1558 100755 --- a/test/test_perf.sh +++ b/test/test_perf.sh @@ -121,19 +121,19 @@ time -p for (( i=0; i<$req; i++ )); do done | $clixon_netconf -qf $cfg -y $fyang > /dev/null new "netconf get $req restconf small config" -/usr/bin/time -p for (( i=0; i<$req; i++ )); do +time -p for (( i=0; i<$req; i++ )); do rnd=$(( ( RANDOM % $number ) )) #XXX curl -sX PUT -d {"y":{"a":"$rnd","b":"$rnd"}} http://localhost/restconf/data/x/y=$rnd,$rnd done new "netconf add $req small config" -/usr/bin/time -p for (( i=0; i<$req; i++ )); do +time -p for (( i=0; i<$req; i++ )); do rnd=$(( ( RANDOM % $number ) )) echo "$rnd$rnd]]>]]>" done | $clixon_netconf -qf $cfg -y $fyang > /dev/null new "netconf add $req restconf small config" -/usr/bin/time -p for (( i=0; i<$req; i++ )); do +time -p for (( i=0; i<$req; i++ )); do rnd=$(( ( RANDOM % $number ) )) curl -sG http://localhost/restconf/data/x/y=$rnd,$rnd > /dev/null done @@ -157,7 +157,7 @@ new "netconf commit large leaf-list config" expecteof "/usr/bin/time -f %e $clixon_netconf -qf $cfg -y $fyang" 0 "]]>]]>" "^]]>]]>$" new "netconf add $req small leaf-list config" -/usr/bin/time -p for (( i=0; i<$req; i++ )); do +time -p for (( i=0; i<$req; i++ )); do rnd=$(( ( RANDOM % $number ) )) echo "$rnd]]>]]>" done | $clixon_netconf -qf $cfg -y $fyang > /dev/null