From b29182600e472b770cde241193bb55f4fbc41a4b Mon Sep 17 00:00:00 2001 From: Muhamad Ibnu Fadhil Date: Wed, 19 Nov 2025 14:14:09 +0700 Subject: [PATCH] add latency test cases and update readme --- README.md | 13 +++++++++++-- latency/request.sh | 2 ++ throughput/jmeter.log | 40 ---------------------------------------- 3 files changed, 13 insertions(+), 42 deletions(-) delete mode 100644 throughput/jmeter.log diff --git a/README.md b/README.md index a8da67e..2385927 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,21 @@ ``` ./request.sh -o -u "" -i --no-output ``` +- `-o` specifies the output folder +- `-u` backend url e.g: `http://stitchaton.local` +- `-i` (optional) specifies the range of the iteration e.g: 1-11 or just 3 +- `--no-output` dumb the output to /dev/null + ### Benchmark Throughput 0. Have JMetter installed, [download here](https://jmeter.apache.org/download_jmeter.cgi) 1. Go to `cd throughput` 2. Run this in the terminal ``` -./request.sh -o -H "" -t -l +./request.sh -o -H "" -t -l -p ``` -3. outputs will be in the directory specified \ No newline at end of file +- `-o` specifies the output folder +- `-H` backend api without http or port e.g: 10.250.123.123 or stitchapi.local +- `-t` number of concurrent requests or threads +- `-l` number of loops of each concurrent requests e.g: 10 threads and 20 loops will result in 200 requests in total +- `-p` port number in which the application is served diff --git a/latency/request.sh b/latency/request.sh index 1b9a74a..2f94893 100755 --- a/latency/request.sh +++ b/latency/request.sh @@ -48,6 +48,7 @@ titles=( "09_A1-AE13-Entire_Left_Panel" "10_A14-AE42-Entire_Middle_Panel" "11_A1-AE55-Full_Image" + "12_W48-Q46-ReversedTile_Small_Rectangle_image_3x6_tiles" ) payloads=( @@ -62,6 +63,7 @@ payloads=( '{"canvas_rect":"A1:AE13","crop_offset":[0,0],"crop_size":[1,1],"output_scale":1}' '{"canvas_rect":"A14:AE42","crop_offset":[0,0],"crop_size":[1,1],"output_scale":1}' '{"canvas_rect":"A1:AE55","crop_offset":[0,0],"crop_size":[1,1],"output_scale":1}' + '{"canvas_rect":"W48:Q46","crop_offset":[0,0],"crop_size":[1,1],"output_scale":1}' ) # Determine the loop range diff --git a/throughput/jmeter.log b/throughput/jmeter.log deleted file mode 100644 index 53bd474..0000000 --- a/throughput/jmeter.log +++ /dev/null @@ -1,40 +0,0 @@ -2025-11-17 17:31:17,310 INFO o.a.j.u.JMeterUtils: Setting Locale to en_EN -2025-11-17 17:31:17,327 INFO o.a.j.JMeter: Loading user properties from: /opt/apache-jmeter-5.6.3/bin/user.properties -2025-11-17 17:31:17,327 INFO o.a.j.JMeter: Loading system properties from: /opt/apache-jmeter-5.6.3/bin/system.properties -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: Copyright (c) 1998-2024 The Apache Software Foundation -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: Version 5.6.3 -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: java.version=21.0.8 -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: java.vm.name=OpenJDK 64-Bit Server VM -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: os.name=Linux -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: os.arch=amd64 -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: os.version=6.14.0-35-generic -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: file.encoding=UTF-8 -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: java.awt.headless=null -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: Max memory =1073741824 -2025-11-17 17:31:17,332 INFO o.a.j.JMeter: Available Processors =8 -2025-11-17 17:31:17,340 INFO o.a.j.JMeter: Default Locale=English (EN) -2025-11-17 17:31:17,341 INFO o.a.j.JMeter: JMeter Locale=English (EN) -2025-11-17 17:31:17,341 INFO o.a.j.JMeter: JMeterHome=/opt/apache-jmeter-5.6.3 -2025-11-17 17:31:17,341 INFO o.a.j.JMeter: user.dir =/home/ibnufadhil/Documents/projects/benchmark/throughput -2025-11-17 17:31:17,341 INFO o.a.j.JMeter: PWD =/home/ibnufadhil/Documents/projects/benchmark/throughput -2025-11-17 17:31:17,391 INFO o.a.j.JMeter: IP: 10.250.7.97 Name: SE-146 FullName: SE-146 -2025-11-17 17:31:17,398 INFO o.a.j.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties -2025-11-17 17:31:17,543 INFO o.a.j.JMeterGuiLauncher: Setting LAF to: com.github.weisj.darklaf.DarkLaf:com.github.weisj.darklaf.theme.DarculaTheme -2025-11-17 17:31:25,059 INFO o.a.j.s.FileServer: Default base='/home/ibnufadhil/Documents/projects/benchmark/throughput' -2025-11-17 17:31:25,061 INFO o.a.j.g.a.Load: Loading file: /home/ibnufadhil/Documents/projects/benchmark/throughput/stitcher-benchmark.jmx -2025-11-17 17:31:25,061 INFO o.a.j.s.FileServer: Set new base='/home/ibnufadhil/Documents/projects/benchmark/throughput' -2025-11-17 17:31:25,209 INFO o.a.j.s.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 -2025-11-17 17:31:25,236 INFO o.a.j.s.SaveService: Using SaveService properties version 5.0 -2025-11-17 17:31:25,238 INFO o.a.j.s.SaveService: Using SaveService properties file encoding UTF-8 -2025-11-17 17:31:25,240 INFO o.a.j.s.SaveService: Loading file: /home/ibnufadhil/Documents/projects/benchmark/throughput/stitcher-benchmark.jmx -2025-11-17 17:31:25,259 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser -2025-11-17 17:31:25,259 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser -2025-11-17 17:31:25,260 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser -2025-11-17 17:31:25,260 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser -2025-11-17 17:31:25,260 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser -2025-11-17 17:31:25,260 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser -2025-11-17 17:31:25,601 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times -2025-11-17 17:31:25,601 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to UTF-8 -2025-11-17 17:31:25,601 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true -2025-11-17 17:31:25,601 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000 -2025-11-17 17:31:25,712 INFO o.a.j.s.FileServer: Set new base='/home/ibnufadhil/Documents/projects/benchmark/throughput'