X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=debug%2Fsorter%2Fradix-tune-bits.sh;h=dbaa49c1a887d75240051287774be02002bf5ff4;hb=6e4a965d34a0852c383bbf881211f1b038f1291b;hp=65098382f34e742682540810634989ec05e21860;hpb=7cf300f543b5023ad46a909ed6fde0feba5d1acd;p=libucw.git diff --git a/debug/sorter/radix-tune-bits.sh b/debug/sorter/radix-tune-bits.sh index 65098382..dbaa49c1 100644 --- a/debug/sorter/radix-tune-bits.sh +++ b/debug/sorter/radix-tune-bits.sh @@ -7,7 +7,7 @@ UCW_PROGNAME="$0" # Path to Sherlock build directory [ -n "$BUILD" ] || BUILD=.. -[ -f "$BUILD/lib/sorter/sorter.h" ] || die "BUILD does not point to Sherlock build directory" +[ -f "$BUILD/ucw/sorter/sorter.h" ] || die "BUILD does not point to Sherlock build directory" # Find out sort buffer size parse-config 'Sorter{##SortBuffer}' @@ -23,7 +23,7 @@ log "Decided to benchmark sorting of $SIZE byte data" WIDTHS="0 6 7 8 9 10 11 12 13 14" # Which RadixThresholds we try -THRS="100 500 1000 2500 5000" +THRS="2000 4000 10000 20000 50000" # Which sort-test tests we try TESTS="2,5,8,15" @@ -31,19 +31,19 @@ TESTS="2,5,8,15" # Check various bit widths of the radix sorter rm -f tmp/radix-* for W in $WIDTHS ; do - rm -f $BUILD/obj/lib/sorter/sort-test{,.o} + rm -f $BUILD/obj/ucw/sorter/sort-test{,.o} if [ $W = 0 ] ; then log "Compiling with no radix splits" - ( cd $BUILD && make obj/lib/sorter/sort-test ) + ( cd $BUILD && make obj/ucw/sorter/sort-test ) OPT="-d32" else log "Compiling with $W-bit radix splits" - ( cd $BUILD && make CEXTRA="-DFORCE_RADIX_BITS=$W" obj/lib/sorter/sort-test ) + ( cd $BUILD && make CEXTRA="-DFORCE_RADIX_BITS=$W" obj/ucw/sorter/sort-test ) OPT= fi for THR in $THRS ; do log "Testing with RadixThreshold=$THR" - $BUILD/obj/lib/sorter/sort-test -SSorter.RadixThreshold=$THR -s$SIZE -t$TESTS $OPT -v 2>&1 | tee -a tmp/radix-$W + $BUILD/obj/ucw/sorter/sort-test -SThreads.DefaultStackSize=2M -SSorter.RadixThreshold=$THR -s$SIZE -t$TESTS $OPT -v 2>&1 | tee -a tmp/radix-$W done done