From 68094cf6998c7f99ab5770e82f8466f973fe02e9 Mon Sep 17 00:00:00 2001 From: ubuntu201711081 <201711081@jbnu.ac.kr> Date: Tue, 8 Dec 2020 15:20:59 +0000 Subject: [PATCH] add simple bench script --- bench.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 bench.sh diff --git a/bench.sh b/bench.sh new file mode 100755 index 0000000..e69f3be --- /dev/null +++ b/bench.sh @@ -0,0 +1,18 @@ +#! /bin/bash + +if [[ ! -d 'tmp' ]] +then + mkdir tmp +fi + +cd testdata +../server 2> log.txt > outlog.txt & +server_pid=$! +sleep 1 +cd ../tmp + +cat ../testdata/dlist.txt|../client localhost 9091 -b -nv -q -t 8 +sed -i -E 's/^[A-Za-z:, ]*([0-9]+)[A-Za-z:, ]+([0-9]+).*$/\1,\2/' ../testdata/log.txt + +echo turn off server :$server_pid +kill $server_pid \ No newline at end of file