Permalink
Browse files

Use count instead of runtime to account for requests taking a lot of …

…time
  • Loading branch information...
1 parent bbc2344 commit 6bff6441666c934c2dc1897caaf25263887c14b0 @ArloL committed Jun 21, 2012
Showing with 28 additions and 28 deletions.
  1. +1 −2 run.sh
  2. +6 −5 testing/build.xml
  3. +21 −21 testing/jmeter-testplan.jmx
View
3 run.sh
@@ -1,4 +1,3 @@
#!/bin/sh
cd testing
-#ant clean
-ant -Druntime=100 -DlogPrefix=HelloServer run-test
+ant -Dcount=1000 -DlogPrefix=HelloCocoaHTTPServer run-test convert import clean
View
11 testing/build.xml
@@ -6,8 +6,8 @@
<property name="testPlan" value="jmeter-testplan"/>
<property name="users" value="1"/>
- <property name="runtime" value="10"/>
- <property name="sleep" value="2"/>
+ <property name="rampUp" value="1"/>
+ <property name="count" value="100"/>
<property name="host" value="127.0.0.1"/>
<property name="port" value="12345"/>
<property name="path" value=""/>
@@ -82,14 +82,15 @@
<jmeter
jmeterhome="${jmeterhome}"
testplan="${basedir}/${testPlan}.jmx"
- resultLog="${basedir}/csv/${logPrefix}-${users}-${runtime}.csv">
+ resultLog="${basedir}/csv/${logPrefix}-${users}-${count}.csv">
<property name="jmeter.save.saveservice.output_format" value="csv"/>
<property name="jmeter.save.saveservice.print_field_names" value="true"/>
<property name="users" value="${users}"/>
- <property name="runtime" value="${runtime}"/>
+ <property name="rampUp" value="${rampUp}"/>
+ <property name="count" value="${count}"/>
<property name="host" value="${host}"/>
- <property name="path" value="${path}"/>
<property name="port" value="${port}"/>
+ <property name="path" value="${path}"/>
</jmeter>
</target>
</project>
View
42 testing/jmeter-testplan.jmx
@@ -7,33 +7,33 @@
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="Benutzer definierte Variablen" enabled="true">
<collectionProp name="Arguments.arguments">
- <elementProp name="Users" elementType="Argument">
- <stringProp name="Argument.name">Users</stringProp>
+ <elementProp name="users" elementType="Argument">
+ <stringProp name="Argument.name">users</stringProp>
<stringProp name="Argument.value">${__P(users,1)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
- <elementProp name="Runtime" elementType="Argument">
- <stringProp name="Argument.name">Runtime</stringProp>
- <stringProp name="Argument.value">${__P(runtime,10)}</stringProp>
+ <elementProp name="rampUp" elementType="Argument">
+ <stringProp name="Argument.name">rampUp</stringProp>
+ <stringProp name="Argument.value">${__P(rampUp,1)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
- <elementProp name="RampUp" elementType="Argument">
- <stringProp name="Argument.name">RampUp</stringProp>
- <stringProp name="Argument.value">${__P(rampup,1)}</stringProp>
+ <elementProp name="count" elementType="Argument">
+ <stringProp name="Argument.name">count</stringProp>
+ <stringProp name="Argument.value">${__P(count,100)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
- <elementProp name="Host" elementType="Argument">
- <stringProp name="Argument.name">Host</stringProp>
+ <elementProp name="host" elementType="Argument">
+ <stringProp name="Argument.name">host</stringProp>
<stringProp name="Argument.value">${__P(host,127.0.0.1)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
- <elementProp name="Path" elementType="Argument">
- <stringProp name="Argument.name">Path</stringProp>
+ <elementProp name="path" elementType="Argument">
+ <stringProp name="Argument.name">path</stringProp>
<stringProp name="Argument.value">${__P(path,)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
- <elementProp name="Port" elementType="Argument">
- <stringProp name="Argument.name">Port</stringProp>
+ <elementProp name="port" elementType="Argument">
+ <stringProp name="Argument.name">port</stringProp>
<stringProp name="Argument.value">${__P(port,12345)}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
@@ -46,13 +46,13 @@
<stringProp name="ThreadGroup.on_sample_error">stoptest</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Schleifen-Controller (Loop Controller)" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
- <intProp name="LoopController.loops">-1</intProp>
+ <stringProp name="LoopController.loops">$(count)</stringProp>
</elementProp>
- <stringProp name="ThreadGroup.num_threads">${Users}</stringProp>
- <stringProp name="ThreadGroup.ramp_time">${RampUp}</stringProp>
+ <stringProp name="ThreadGroup.num_threads">${users}</stringProp>
+ <stringProp name="ThreadGroup.ramp_time">${rampUp}</stringProp>
<longProp name="ThreadGroup.start_time">1281280459000</longProp>
<longProp name="ThreadGroup.end_time">1281280459000</longProp>
- <boolProp name="ThreadGroup.scheduler">true</boolProp>
+ <boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration">${Runtime}</stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
</ThreadGroup>
@@ -61,8 +61,8 @@
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="Benutzer definierte Variablen" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
- <stringProp name="HTTPSampler.domain">${Host}</stringProp>
- <stringProp name="HTTPSampler.port">${Port}</stringProp>
+ <stringProp name="HTTPSampler.domain">${host}</stringProp>
+ <stringProp name="HTTPSampler.port">${port}</stringProp>
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
@@ -81,7 +81,7 @@
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
- <stringProp name="HTTPSampler.path">${Path}/hello</stringProp>
+ <stringProp name="HTTPSampler.path">${path}/hello</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">false</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>

0 comments on commit 6bff644

Please sign in to comment.