#!/bin/sh [ -z "$BASH_VERSION" ] && (which bash > /dev/null 2>&1) && exec bash $0 $*; # ----------------------------------------------------------------------------- root=$(cd $(dirname $(which "$0"))/.. && pwd); . $root/scripts/tools.sh; # ----------------------------------------------------------------------------- reports="$root/reports-$HOSTNAME"; make_header () { cat < $1 EOF } make_footer () { cat < EOF } # ----------------------------------------------------------------------------- dir=$1; [ -n "$dir" ] || dir=.; collect () { dir=$1; status 1 "collecting results"; make_header "Results" > index.html; find $dir -type d | while read dir; do ( cd "$dir"; ls speed_* &> /dev/null || exit; make_header "Results" > index.html; first=true; "$root/scripts/tabulate" speed_* | sort -n | while read line; do echo ${line#* } >> index.html; if [ "$first" = "true" ]; then echo " ${line//href=\'/href=\'$dir/}"; first=false; fi done make_footer >> index.html; ) done | sort -n | while read line; do if expr match "$line" ".*/benchmarks/" &> /dev/null; then line=${line/""/""}; fi echo " ${line#* }" >> index.html; config=$(echo $line | sed 's/^.*\([^<]*\)<.*$/\1/'); awk '/^tag/ { print $3; exit; }' "$reports/configs/$config.mk"; done | sort | uniq -c | sort -rn; make_footer >> index.html; status 1; } shortlist=$(collect "$dir"); answer=$(ask 1 "Should I update the shortlist? [Y/n]" "Y"); [ "$answer" = "n" ] || echo "$shortlist" > "$root/config/shortlist";
Primitive Profile Key IV MAC Stream 40 bytes 576 bytes 1500 bytes Imix Key setup IV setup Variant Compiler