2025-11-17 20:11:26 +07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
|
|
|
|
|
<hashTree>
|
|
|
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="stitcher-benchmark">
|
|
|
|
|
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
|
|
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
|
|
</elementProp>
|
2025-11-19 11:33:16 +07:00
|
|
|
<boolProp name="TestPlan.functional_mode">false</boolProp>
|
|
|
|
|
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
|
2025-11-17 20:11:26 +07:00
|
|
|
</TestPlan>
|
|
|
|
|
<hashTree>
|
|
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group">
|
|
|
|
|
<stringProp name="ThreadGroup.num_threads">${__P(threads, 10)}</stringProp>
|
|
|
|
|
<intProp name="ThreadGroup.ramp_time">1</intProp>
|
|
|
|
|
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
|
|
|
|
|
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
|
|
|
|
|
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller">
|
|
|
|
|
<stringProp name="LoopController.loops">${__P(loops, 50)}</stringProp>
|
|
|
|
|
<boolProp name="LoopController.continue_forever">false</boolProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</ThreadGroup>
|
|
|
|
|
<hashTree>
|
2025-11-19 11:33:16 +07:00
|
|
|
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="canvasRect">
|
|
|
|
|
<stringProp name="delimiter">,</stringProp>
|
|
|
|
|
<stringProp name="fileEncoding"></stringProp>
|
|
|
|
|
<stringProp name="filename">canvas_rects.txt</stringProp>
|
|
|
|
|
<boolProp name="ignoreFirstLine">false</boolProp>
|
|
|
|
|
<boolProp name="quotedData">false</boolProp>
|
|
|
|
|
<boolProp name="recycle">true</boolProp>
|
|
|
|
|
<stringProp name="shareMode">shareMode.all</stringProp>
|
|
|
|
|
<boolProp name="stopThread">false</boolProp>
|
|
|
|
|
<stringProp name="variableNames">canvasRect</stringProp>
|
|
|
|
|
</CSVDataSet>
|
|
|
|
|
<hashTree/>
|
2025-11-17 20:11:26 +07:00
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP Request">
|
|
|
|
|
<stringProp name="HTTPSampler.domain">${__P(url, stitchaton.local)}</stringProp>
|
2025-11-19 11:33:16 +07:00
|
|
|
<stringProp name="HTTPSampler.port">${__P(port, 5000)}</stringProp>
|
2025-11-17 20:11:26 +07:00
|
|
|
<stringProp name="HTTPSampler.protocol">http</stringProp>
|
|
|
|
|
<stringProp name="HTTPSampler.path">/api/image/generate</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
|
|
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
|
|
<stringProp name="Argument.value">{
|
|
|
|
|
"canvas_rect": "${canvasRect}",
|
|
|
|
|
"crop_offset": [0.25, 0.25],
|
|
|
|
|
"crop_size": [0.5, 0.5],
|
|
|
|
|
"output_scale": 0.5
|
|
|
|
|
}</stringProp>
|
|
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</HTTPSamplerProxy>
|
|
|
|
|
<hashTree>
|
|
|
|
|
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager">
|
|
|
|
|
<collectionProp name="HeaderManager.headers">
|
|
|
|
|
<elementProp name="" elementType="Header">
|
|
|
|
|
<stringProp name="Header.name">Content-Type</stringProp>
|
|
|
|
|
<stringProp name="Header.value">application/json</stringProp>
|
|
|
|
|
</elementProp>
|
|
|
|
|
</collectionProp>
|
|
|
|
|
</HeaderManager>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
<ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report">
|
|
|
|
|
<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">/home/ibnufadhil/Documents/projects/benchmark/result.csv</stringProp>
|
|
|
|
|
</ResultCollector>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree">
|
|
|
|
|
<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"></stringProp>
|
|
|
|
|
</ResultCollector>
|
|
|
|
|
<hashTree/>
|
|
|
|
|
</hashTree>
|
|
|
|
|
</hashTree>
|
|
|
|
|
</hashTree>
|
|
|
|
|
</jmeterTestPlan>
|