aboutsummaryrefslogtreecommitdiff
path: root/evc/scripts/report
blob: c6f1085ad49351a38b13ee1f7a3f55d706c7c8ad (plain)
1
2
3
4
5
6
7
8
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 (math 1920 / 2) -H (math 1080 / 2) <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)