Skip to content

Commit

Permalink
root: added benchmark.sh for consistency
Browse files Browse the repository at this point in the history
Since we want consistency during benchmarking, I should add the
script in. Hence, let's do this.

This patch adds benchmark.sh for consistency in root repository.

Signed-off-by: (Holloway) Chew, Kean Ho <[email protected]>
  • Loading branch information
hollowaykeanho committed May 2, 2023
1 parent 898a308 commit f9e90b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ In case you need to contribute back:


## Benchmarks
Results of benchmarks
Results of benchmarks running `tests/benchmark.sh` at the root of the
repository. Please leave the system dedicated to only running the benchmark
and not doing something else for maintaining consistencies.

### Debian AMD64 CPU, 12GB Memory, 2GB VRAM, NVIDIA GeForce MX150

Expand Down
11 changes: 11 additions & 0 deletions tests/benchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
if [ -f "./start.cmd" ]; then
time ./start.cmd \
--model upscayl-ultrasharp2 \
--scale 4 \
--format webp \
--video \
--input tests/video/sample-1-640x360.mp4
else
printf "[ ERROR ] Please make sure you're at the root location of the repo!\n"
fi

0 comments on commit f9e90b7

Please sign in to comment.