diff options
| author | Fuwn <[email protected]> | 2022-03-24 03:00:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-24 03:00:20 -0700 |
| commit | 7f937f3e922dd3c2810b4726bcfebc5d934b8364 (patch) | |
| tree | d5aa90a1efd18543f955fa5f4ceeb2e087aea66a | |
| parent | 74b5df7e5b157b6993e0ae273e432f7b7010d802 (diff) | |
| download | para-7f937f3e922dd3c2810b4726bcfebc5d934b8364.tar.xz para-7f937f3e922dd3c2810b4726bcfebc5d934b8364.zip | |
ci(bench): bench scripts
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | benches/bench.ps1 | 19 | ||||
| m--------- | benches/ppm-parser | 0 |
3 files changed, 22 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8b36103 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "benches/ppm-parser"] + path = benches/ppm-parser + url = https://github.com/Flipnote-Collective/ppm-parser diff --git a/benches/bench.ps1 b/benches/bench.ps1 new file mode 100644 index 0000000..6f123a9 --- /dev/null +++ b/benches/bench.ps1 @@ -0,0 +1,19 @@ +# Frame count: +# - 020FFA_09936E53EA4BC_001.ppm: 44 +# - 022FE6_0987E2DB2322A_003.ppm: 244 + +cargo build --release + +# Feel free to uncomment ppm-parser's benchmark, however, it takes a VERY LONG +# time to complete, especially with three warmup runs. +# +# PPM-Parser Benchmark + (3 * PPM-Parser Warmup Runs) ~ (~50.4 + (3 * ~50.4) +hyperfine --warmup 3 ` + ".\\target\\release\\para .\\benches\\ppm\\022FE6_0987E2DB2322A_003.ppm gif bench.gif" # ` + # "py .\\benches\\ppm-parser\\ppmImage.py .\\benches\\ppm\\022FE6_0987E2DB2322A_003.ppm gif bench.gif" +hyperfine --warmup 3 ` + ".\\target\\release\\para .\\benches\\ppm\\022FE6_0987E2DB2322A_003.ppm 0 bench.png" ` + "py .\\benches\\ppm-parser\\ppmImage.py .\\benches\\ppm\\022FE6_0987E2DB2322A_003.ppm 0 bench.png" + +Remove-Item -ErrorAction Ignore bench.gif +Remove-Item -ErrorAction Ignore bench.png diff --git a/benches/ppm-parser b/benches/ppm-parser new file mode 160000 +Subproject cfb69f4b331287d6e21ee6699e0c464e9a4580e |