BEN-600 - Commands Used ========================= Warming Mid-tier cache ------------------------ HOST="cix7cricsvweeu6k.onion" for br in 512 1024 2048 do for num in {0..10} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1/Big_Buck_Bunny-HLS/Big_Buck_Bunny_${br}_0000${num}.ts" done for num in {11..99} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1/Big_Buck_Bunny-HLS/Big_Buck_Bunny_${br}_000${num}.ts" done for num in {100..211} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1/Big_Buck_Bunny-HLS/Big_Buck_Bunny_${br}_00${num}.ts" done done Warming Edge-Cache -------------------- HOST="f5jayrbaz7nmtyyr.onion" for br in 512 1024 2048 do for num in {0..10} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1:9080/Big_Buck_Bunny-HLS/Big_Buck_Bunny_${br}_0000${num}.ts" done for num in {11..99} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1:9080/Big_Buck_Bunny-HLS/Big_Buck_Bunny_${br}_000${num}.ts" done for num in {100..211} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1:9080/Big_Buck_Bunny-HLS/Big_Buck_Bunny_${br}_00${num}.ts" done done Warming Edge-Cache, 10s fragments ------------------------------------ HOST="f5jayrbaz7nmtyyr.onion" for br in 512 1024 2048 do for num in {0..10} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1:9080/Big_Buck_Bunny-HLS-10sec/Big_Buck_Bunny_${br}_0000${num}.ts" done for num in {11..63} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1:9080/Big_Buck_Bunny-HLS-10sec/Big_Buck_Bunny_${br}_000${num}.ts" done done Warming Edge-Cache, 10s fragments, 480p ------------------------------------------- HOST="f5jayrbaz7nmtyyr.onion" for br in 512 1024 2048 do for num in {0..10} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1:9080/Big_Buck_Bunny-HLS-10sec/Big_Buck_Bunny_480p_${br}_0000${num}.ts" done for num in {11..63} do curl -H "Host: $HOST" -o /dev/null "http://127.0.0.1:9080/Big_Buck_Bunny-HLS-10sec/Big_Buck_Bunny_480p_${br}_000${num}.ts" done done Get log lines for latest test ------------------------------- Origin: tail -n $((`wc -l /var/log/nginx/access.log | cut -d\ -f1` - `grep '"GET /ENDTEST' -n /var/log/nginx/access.log | cut -d: -f1 | tail -n2 | head -n1`)) /var/log/nginx/access.log | grep streamingtest Midtier: tail -n $((`wc -l /var/log/nginx/access.log | cut -d\ -f1` - `grep '"GET /ENDTEST' -n /var/log/nginx/access.log | cut -d: -f1 | tail -n2 | head -n1`)) /var/log/nginx/access.log | grep cix7cricsvweeu6k Edge: tail -n $((`wc -l /var/log/nginx/access.log | cut -d\ -f1` - `grep '"GET /ENDTEST' -n /var/log/nginx/access.log | cut -d: -f1 | tail -n2 | head -n1`)) /var/log/nginx/access.log | grep f5jayrbaz7nmtyyr Calculate duration stats -------------------------- Origin: cat test3.log /var/log/nginx/access.log | grep ".ts" | grep "jwplayer.flash.swf" | awk -F '\t' 'BEGIN{tot=0; count=0; min=9999; max=0;}{tot=+$13;count+=1; if ($13 > max) max=$13 endif; if ($13 < min) min=$13 endif;}END{avg=tot/count; printf "%.8f,%.8f,%.8f,%d\n",avg,max,min,count}' Midtier: cat test3.log | grep ".ts" | grep "jwplayer.flash.swf" | awk -F '\t' 'BEGIN{tot=0; count=0; min=9999; max=0;}{tot=+$13;count+=1; if ($13 > max) max=$13 endif; if ($13 < min) min=$13 endif;}END{avg=tot/count; printf "%.8f,%.8f,%.8f,%d\n",avg,max,min,count}' Edge: cat test3.log | grep ".ts" | grep "jwplayer.flash.swf" | awk -F '\t' 'BEGIN{tot=0; count=0; min=9999; max=0;}{tot=+$13;count+=1; if ($13 > max) max=$13 endif; if ($13 < min) min=$13 endif;}END{avg=tot/count; printf "%.8f,%.8f,%.8f,%d\n",avg,max,min,count}' Disposition counts -------------------- grep ".ts" test3.log | awk -F'\t' '{print $12}' | sort | uniq -c Extracting requested bitrates ------------------------------- grep ".ts" test5.log | grep -o -P "Big_Buck_Bunny_([0-9]+)_" | cut -d_ -f4 | uniq -c Get Start and end dates for each log -------------------------------------- for i in test*; do echo "$i `head -n1 "$i" | awk -F'\t' '{print $4}'` - `tail -n1 "$i" | awk -F'\t' '{print $4}'`"; done