KASM-6984 Update benchmark specs and CI to include JPEG and WebP results

This commit is contained in:
El 2025-05-02 16:09:37 +05:00
parent af1a615dd1
commit ee43b75f38
No known key found for this signature in database
GPG Key ID: EB3F4C9EA29CDE59
2 changed files with 12 additions and 4 deletions

View File

@ -535,7 +535,8 @@ test:
reports: reports:
junit: junit:
- SelfBench.xml - SelfBench.xml
- Benchmark.xml - JpegBenchmark.xml
- WebPBenchmark.xml
script: script:
- bash builder/test-vncserver - bash builder/test-vncserver

View File

@ -9,7 +9,14 @@ with description("Benchmarking"):
kill_xvnc() kill_xvnc()
with it("runs benchmarks"): with it("runs benchmarks"):
run_cmd("wget --no-check-certificate https://kasmweb-build-artifacts.s3.us-east-1.amazonaws.com/kasmvnc/static/127072-737747495_small.mp4 -O /tmp/video.mp4") run_cmd("wget --no-check-certificate https://kasmweb-build-artifacts.s3.us-east-1.amazonaws.com/kasmvnc/static/127072-737747495_small.mp4 -O /tmp/video.mp4")
completed_process = run_cmd("Xvnc -interface 0.0.0.0 :1 -Benchmark /tmp/video.mp4 -VideoArea 100") completed_process = run_cmd("Xvnc -interface 0.0.0.0 :1 -Benchmark /tmp/video.mp4 -VideoArea 100 -BenchmarkResults JpegBenchmark.xml")
command = '''sed -i "s/KasmVNC/$(grep -E '^ID=' /etc/os-release | cut -d= -f2 | tr -d '"') $(grep -E '^VERSION_CODENAME=' /etc/os-release | cut -d= -f2 | tr -d '"')/g" Benchmark.xml'''
run_cmd(command)
expect(completed_process.returncode).to(equal(0)) expect(completed_process.returncode).to(equal(0))
run_cmd('''sed -i "s/KasmVNC/$(grep -E '^ID=' /etc/os-release | cut -d= -f2 | tr -d '"') $(grep -E '^VERSION_CODENAME=' /etc/os-release | cut -d= -f2 | tr -d '"')/g" JpegBenchmark.xml''')
run_cmd("sed -i 's/testcase name=\"/testcase name=\"JPEG: /g' JpegBenchmark.xml")
completed_process = run_cmd("Xvnc -interface 0.0.0.0 :1 -Benchmark /tmp/video.mp4 -VideoArea 100 -BenchmarkResults WebPBenchmark.xml")
expect(completed_process.returncode).to(equal(0))
run_cmd('''sed -i "s/KasmVNC/$(grep -E '^ID=' /etc/os-release | cut -d= -f2 | tr -d '"') $(grep -E '^VERSION_CODENAME=' /etc/os-release | cut -d= -f2 | tr -d '"')/g" WebPBenchmark.xml''')
run_cmd("sed -i 's/testcase name=\"/testcase name=\"WebP: /g' WebPBenchmark.xml")