benczmark 00 implementacji tablicowej drzew czerwono czarnych - skrypt bash


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#
#example: ./bench00.sh 30 4 500000 250000 2000000 2000000 1234
#
if [ $# != 7 ]; then
    echo "use\bench00 loop subloop size_i size_r size_f range seed"
    exit
fi

rm *.gcda

g++ -m64 -O3 -march=native -std=c++0x -fprofile-generate -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/usr/include/qt5 -I/usr/include/qt5/QtCore bench00.cpp -lQt5Core -lpthread -o bench00
./bench00 profile 2 3 32000 16000 64000 64000 631371908313125
g++ -m64 -O3 -march=native -std=c++0x -fprofile-use -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/usr/include/qt5 -I/usr/include/qt5/QtCore bench00.cpp -lQt5Core -lpthread -o bench00

echo
echo

time ./bench00 testSet $1 $2 $3 $4 $5 $6 $7
time ./bench00 testMap $1 $2 $3 $4 $5 $6 $7
time ./bench00 testRb $1 $2 $3 $4 $5 $6 $7
time ./bench00 testRbSort $1 $2 $3 $4 $5 $6 $7

Komentarze

Popularne posty z tego bloga

benchmark 00 tablicowej implementacji drzew czerwono czarnych

metodyka testowania implementacji drzew czerwono czarnych na bazie tablicy