summaryrefslogtreecommitdiffstats
path: root/vcpe_beijing/vcpe/pressure/test.sh
diff options
context:
space:
mode:
authorhuangzh <huangzh.bri@chinatelecom.cn>2018-11-07 11:45:38 +0800
committerhuangzh <huangzh.bri@chinatelecom.cn>2018-11-08 10:57:13 +0800
commit1ff97d639e631fe7465038d76e093bc5c1a31867 (patch)
treed3f4aa2144043930c2fee7073a22e45a9f41805b /vcpe_beijing/vcpe/pressure/test.sh
parent4d96698b0cc2b738685482c8a8971f21b143b27e (diff)
new add s3p test scripte
Change-Id: I84b933c017ad7cee12e70da868e8dea1dd9f348b Issue-ID: INT-714 Signed-off-by: huangzh <huangzh.bri@chinatelecom.cn>
Diffstat (limited to 'vcpe_beijing/vcpe/pressure/test.sh')
-rw-r--r--vcpe_beijing/vcpe/pressure/test.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpe_beijing/vcpe/pressure/test.sh b/vcpe_beijing/vcpe/pressure/test.sh
new file mode 100644
index 0000000..367db10
--- /dev/null
+++ b/vcpe_beijing/vcpe/pressure/test.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+#开始时间
+begin=$(date +%s)
+
+count=4
+rsnum=1
+cishu=$(expr $count / $rsnum)
+
+for ((i=0; i<$cishu;))
+do
+ start_num=$(expr $i \* $rsnum + 1)
+ end_num=$(expr $start_num + $rsnum - 1)
+ for j in `seq $start_num $end_num`
+ do
+ #echo $j
+ ./echo.sh &
+ done
+ wait
+ i=$(expr $i + 1)
+done
+
+#结束时间
+end=$(date +%s)
+spend=$(expr $end - $begin)
+echo "花费时间为$spend秒"