Mercurial > hg > Members > nobuyasu > jungle_benchmark
view distributed/weighttp/stress_weighttp.sh @ 22:d6d3b7180e6d
Added calc_sd_from_log.rb
author | Nobuyasu |
---|---|
date | Thu, 30 Jan 2014 21:48:09 +0900 |
parents | a972a5814b0b |
children |
line wrap: on
line source
#!/bin/sh export LD_LIBRARY_PATH=/usr/local/lib hostname=`hostname` myNum=$1 nodesFile=$2 schedule=$3 requestNum=$4 concurrent=$5 threadNum=$6 function get_node_name() { num=$1 nodeLength=0 nodeArray=() while read serv do nodeArray[$nodeLength]=$serv nodeLength=`expr $nodeLength + 1` done echo ${nodeArray[$num]} } uri=':8080/showBoardMessage?bname=hello%20world' nodeUrl=`get_node_name < $nodesFile $myNum` now=$(date +%s) sleepTime=`expr $schedule - $now` sleep $sleepTime ret=`/home/mass/student/k128576/opt/bin/weighttp -n $requestNum -c $concurrent -t $threadNum -k $nodeUrl$uri` time=`echo $ret | awk '{print $62 " " $63 " " $82 " " $83}' ` echo $nodeUrl$uri echo $time