aboutsummaryrefslogtreecommitdiff
path: root/evc/scripts/report
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-06 16:42:06 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-06 16:42:06 +0100
commit624471a4b1f2e1656a2ba46070d8f127dcd0e364 (patch)
tree36eacde470390c03991619ce5bc28ac6aa222e90 /evc/scripts/report
parent6a3aaca8727d3f0292d62dbcd54e3bf87df74c0c (diff)
downloadvideo-codec-experiments-624471a4b1f2e1656a2ba46070d8f127dcd0e364.tar
video-codec-experiments-624471a4b1f2e1656a2ba46070d8f127dcd0e364.tar.bz2
video-codec-experiments-624471a4b1f2e1656a2ba46070d8f127dcd0e364.tar.zst
use env_logger
Diffstat (limited to 'evc/scripts/report')
-rwxr-xr-xevc/scripts/report9
1 files changed, 9 insertions, 0 deletions
diff --git a/evc/scripts/report b/evc/scripts/report
new file mode 100755
index 0000000..fee3c54
--- /dev/null
+++ b/evc/scripts/report
@@ -0,0 +1,9 @@
+#!/bin/fish
+cargo build --release
+begin
+ echo "version: $argv[1]"
+ echo "commit: $(cat ../.git/refs/heads/master | head -c 10)"
+ echo "encode: $(command time -f %U ./target/release/encode -W 1920 -H 1080 <samples/raw >samples/encoded 2>| tail -n 1)s"
+ echo "decode: $(command time -f %U ./target/release/decode <samples/encoded >samples/decoded 2>| tail -n 1)s"
+ echo "size: $(du -h samples/encoded | cut -f 1)"
+end | tee -a reports/(date)