diff --git a/testPerformance.sh b/testPerformance.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa2ce45fa1fc21ced66fc5f260f594bff47e6d7a --- /dev/null +++ b/testPerformance.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +NTESTS=10 +TAILLES="1000 10000 100000" + +echo -e "taille\titest\texectime\trealtime\summary" + +for taille in $TAILLES +do + for itest in 'seq 1 $NTESTS' + do + RES="$taille\t$test\t" + RES="$RES"( /usr/bin/time -f "%U\t%e\t%M" ./recherche $taille >/dev/null ) 2>&1 + + echo -e $RES + done +done