Add a percentage change column

- This is the decoder fps change percentage from one day before.

Change-Id: Id2ebf158e49787e589908faba77b340b9a9212c6
This commit is contained in:
Yi Luo
2017-07-26 14:14:51 -07:00
parent 1e79d83711
commit a53bbe92d5
4 changed files with 41 additions and 24 deletions

View File

@@ -10,6 +10,9 @@ log_path=~/Dev/log
date_str=`date +%b_%d_%Y` date_str=`date +%b_%d_%Y`
log_file=report_$date_str.txt log_file=report_$date_str.txt
yest_str=`date -d yesterday +%b_%d_%Y`
yest_log_file=report_$yest_str.txt
test_dir=~/Dev/nightly test_dir=~/Dev/nightly
rm $test_dir/* rm $test_dir/*
@@ -17,17 +20,23 @@ rm $test_dir/*
$script_path/sync_codebase.sh $av1_code/aom > $log_path/$log_file 2>&1 $script_path/sync_codebase.sh $av1_code/aom > $log_path/$log_file 2>&1
$script_path/av1_conf_build.sh $av1_code >> $log_path/$log_file 2>&1 $script_path/av1_conf_build.sh $av1_code >> $log_path/$log_file 2>&1
$script_path/nightly_speed.sh $av1_code 0 >> $log_path/$log_file 2>&1
$script_path/nightly_speed.sh $av1_code 2 >> $log_path/$log_file 2>&1 pdfps=`cat $log_path/$yest_log_file | grep e_ok | awk '{print $2}' | awk 'NR==1 {print $1}'`
$script_path/nightly_speed.sh $av1_code 0 $pdfps >> $log_path/$log_file 2>&1
pdfps=`cat $log_path/$yest_log_file | grep e_ok | awk '{print $2}' | awk 'NR==2 {print $1}'`
$script_path/nightly_speed.sh $av1_code 2 $pdfps >> $log_path/$log_file 2>&1
# VP9 # VP9
$script_path/sync_codebase.sh $vp9_code/libvpx >> $log_path/$log_file 2>&1 $script_path/sync_codebase.sh $vp9_code/libvpx >> $log_path/$log_file 2>&1
$script_path/vp9_conf_build.sh $vp9_code lowbitdepth >> $log_path/$log_file 2>&1 $script_path/vp9_conf_build.sh $vp9_code lowbitdepth >> $log_path/$log_file 2>&1
$script_path/vp9_nightly_speed.sh $vp9_code 0 >> $log_path/$log_file 2>&1 pdfps=`cat $log_path/$yest_log_file | grep e_ok | awk '{print $2}' | awk 'NR==3 {print $1}'`
$script_path/vp9_nightly_speed.sh $vp9_code 0 $pdfps >> $log_path/$log_file 2>&1
$script_path/vp9_conf_build.sh $vp9_code highbitdepth >> $log_path/$log_file 2>&1 $script_path/vp9_conf_build.sh $vp9_code highbitdepth >> $log_path/$log_file 2>&1
$script_path/vp9_nightly_speed.sh $vp9_code 2 >> $log_path/$log_file 2>&1 pdfps=`cat $log_path/$yest_log_file | grep e_ok | awk '{print $2}' | awk 'NR==4 {print $1}'`
$script_path/vp9_nightly_speed.sh $vp9_code 2 $pdfps >> $log_path/$log_file 2>&1
users=luoyi users=luoyi
host_name=`hostname` host_name=`hostname`

View File

@@ -20,12 +20,14 @@
# 1) profile=2 # 1) profile=2
# 2) bitdepth="--bit-depth=10/12" # 2) bitdepth="--bit-depth=10/12"
if [ "$#" -ne 2 ]; then if [ "$#" -ne 3 ]; then
root_dir=~/Dev/av1d root_dir=~/Dev/av1d
profile=0 profile=0
pdfps=1
else else
root_dir=$1 root_dir=$1
profile=$2 profile=$2
pdfps=$3
fi fi
if [ "$profile" == "2" ]; then if [ "$profile" == "2" ]; then
@@ -95,8 +97,9 @@ fi
dfps=`awk '{print $9}' < $dlog` dfps=`awk '{print $9}' < $dlog`
dfps=`echo $dfps | sed 's/(//'` dfps=`echo $dfps | sed 's/(//'`
echo -e '\t'"Enc fps Dec fps PSNR"'\t\t\t\t\t\t\t'"Enc status Dec status" percent=`echo "($dfps - $pdfps) / $pdfps * 100" | bc -l`
echo -e '\t'$efps" "$dfps" "$psnr'\t'$eflag" "$dflag percent=${percent:0:5}
echo -e '\t'"Enc fps Dec fps PSNR"'\t\t\t\t\t\t\t'"Enc status Dec status Change (%)"
echo -e '\t'$efps" "$dfps" "$psnr'\t'$eflag" "$dflag" "$percent
printf "\n" printf "\n"

View File

@@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
# video=~/Dev/samples/videos/yaowu/soccer_cif.y4m video=~/Dev/samples/videos/yaowu/soccer_cif.y4m
# wi=352 wi=352
# he=288 he=288
# frames=5 frames=5
# bitrate=500 bitrate=500
# fps="30/1" fps="30/1"
# video=~/Dev/samples/videos/speed-set/touchdown_pass_480p.y4m # video=~/Dev/samples/videos/speed-set/touchdown_pass_480p.y4m
# wi=854 # wi=854
@@ -14,9 +14,9 @@
# bitrate=600 # bitrate=600
# fps="30000/1001" # fps="30000/1001"
video=~/Dev/samples/videos/speed-set/BasketballDrive_1920x1080_50.y4m # video=~/Dev/samples/videos/speed-set/BasketballDrive_1920x1080_50.y4m
wi=1920 # wi=1920
he=1080 # he=1080
frames=150 # frames=150
bitrate=4000 # bitrate=4000
fps="50/1" # fps="50/1"

View File

@@ -20,12 +20,14 @@
# 1) profile=2 # 1) profile=2
# 2) bitdepth="--bit-depth=10/12" # 2) bitdepth="--bit-depth=10/12"
if [ "$#" -ne 2 ]; then if [ "$#" -ne 3 ]; then
root_dir=~/Dev/vp9d root_dir=~/Dev/vp9d
profile=0 profile=0
pdfps=1
else else
root_dir=$1 root_dir=$1
profile=$2 profile=$2
pdfps=$3
fi fi
if [ "$profile" == "2" ]; then if [ "$profile" == "2" ]; then
@@ -83,7 +85,10 @@ fi
dfps=`awk '{print $9}' < $dlog` dfps=`awk '{print $9}' < $dlog`
dfps=`echo $dfps | sed 's/(//'` dfps=`echo $dfps | sed 's/(//'`
echo -e '\t'"Enc fps Dec fps PSNR"'\t\t\t\t\t\t\t'"Enc status Dec status" percent=`echo "($dfps - $pdfps) / $pdfps * 100" | bc -l`
echo -e '\t'$efps" "$dfps" "$psnr'\t'$eflag" "$dflag percent=${percent:0:5}
echo -e '\t'"Enc fps Dec fps PSNR"'\t\t\t\t\t\t\t'"Enc status Dec status Change(%)"
echo -e '\t'$efps" "$dfps" "$psnr'\t'$eflag" "$dflag" "$percent
printf "\n" printf "\n"