Browse Source

fix gnuplot scripts

master
Nicolas Massé 5 years ago
parent
commit
8a3fa164dd
  1. 2
      nginx-static/.gitignore
  2. 4
      nginx-static/latency.gnuplot
  3. 90
      nginx-static/nginx-static.jmx
  4. 4
      nginx-static/run.sh
  5. 11
      nginx-static/throughput.gnuplot

2
nginx-static/.gitignore

@ -1,2 +0,0 @@
response-time.csv
tps.csv

4
nginx-static/response-time.gnuplot → nginx-static/latency.gnuplot

@ -5,5 +5,5 @@ set format x "%H:%M:%S"
set xlabel "Time"; set xlabel "Time";
set ylabel "Latency (ms)"; set ylabel "Latency (ms)";
set terminal png size 1280,1024 set terminal png size 1280,1024
set output 'response-time.png' set output outfile
plot 'response-time.csv' using ($1/1000):15 with points pt 1 ps 0.5 plot dataset using ($1/1000):15 with points pt 1 ps 0.5

90
nginx-static/nginx-static.jmx

@ -56,96 +56,6 @@
<hashTree/> <hashTree/>
</hashTree> </hashTree>
</hashTree> </hashTree>
<kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Response Times Over Time" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>true</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
<sentBytes>true</sentBytes>
<url>true</url>
<threadCounts>true</threadCounts>
<idleTime>true</idleTime>
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename">response-time.csv</stringProp>
<longProp name="interval_grouping">500</longProp>
<boolProp name="graph_aggregated">false</boolProp>
<stringProp name="include_sample_labels"></stringProp>
<stringProp name="exclude_sample_labels"></stringProp>
<stringProp name="start_offset"></stringProp>
<stringProp name="end_offset"></stringProp>
<boolProp name="include_checkbox_state">false</boolProp>
<boolProp name="exclude_checkbox_state">false</boolProp>
</kg.apc.jmeter.vizualizers.CorrectedResultCollector>
<hashTree/>
<kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.TransactionsPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="Transactions per Second" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
<value class="SampleSaveConfiguration">
<time>true</time>
<latency>true</latency>
<timestamp>true</timestamp>
<success>true</success>
<label>true</label>
<code>true</code>
<message>true</message>
<threadName>true</threadName>
<dataType>true</dataType>
<encoding>false</encoding>
<assertions>true</assertions>
<subresults>true</subresults>
<responseData>false</responseData>
<samplerData>false</samplerData>
<xml>false</xml>
<fieldNames>true</fieldNames>
<responseHeaders>false</responseHeaders>
<requestHeaders>false</requestHeaders>
<responseDataOnError>false</responseDataOnError>
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>0</assertionsResultsToSave>
<bytes>true</bytes>
<sentBytes>true</sentBytes>
<url>true</url>
<threadCounts>true</threadCounts>
<idleTime>true</idleTime>
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename">tps.csv</stringProp>
<longProp name="interval_grouping">1000</longProp>
<boolProp name="graph_aggregated">false</boolProp>
<stringProp name="include_sample_labels"></stringProp>
<stringProp name="exclude_sample_labels"></stringProp>
<stringProp name="start_offset"></stringProp>
<stringProp name="end_offset"></stringProp>
<boolProp name="include_checkbox_state">false</boolProp>
<boolProp name="exclude_checkbox_state">false</boolProp>
</kg.apc.jmeter.vizualizers.CorrectedResultCollector>
<hashTree/>
</hashTree> </hashTree>
</hashTree> </hashTree>
</jmeterTestPlan> </jmeterTestPlan>

4
nginx-static/run.sh

@ -6,6 +6,6 @@ set -e # Do not update graphs if jmeter fails
: ${GNUPLOT:=gnuplot} : ${GNUPLOT:=gnuplot}
HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m" HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"
date="$(date +%F-%H-%M-%S)" date="$(date +%F-%H-%M-%S)"
rm -f response-time.csv tps.csv
$JMETER -n -t nginx-static.jmx -l "results-$date.csv" -e -o "report-$date" $JMETER -n -t nginx-static.jmx -l "results-$date.csv" -e -o "report-$date"
#$GNUPLOT -p response-time.gnuplot $GNUPLOT -e "dataset='results-$date.csv'" -e "outfile='latency-$date.png'" -p latency.gnuplot
$GNUPLOT -e "dataset='results-$date.csv'" -e "outfile='throughput-$date.png'" -p throughput.gnuplot

11
nginx-static/throughput.gnuplot

@ -0,0 +1,11 @@
set datafile separator ','
set xlabel "Time";
set ylabel "Transactions per second";
set terminal png size 1280,1024
set output outfile
# Aggregate transactions over a second
binwidth=1000
bin(x,width)=width*floor(x/width)
plot dataset using (bin($1,binwidth)):(1.0) smooth freq with boxes
Loading…
Cancel
Save