From 535fd82335861f6ce9e59ffe6c0e79185a540cf1 Mon Sep 17 00:00:00 2001 From: Yasin Aydogdu <yaydogdu@unistra.fr> Date: Mon, 26 Mar 2018 15:10:16 +0200 Subject: [PATCH] ajout test sh --- testPerformance.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 testPerformance.sh diff --git a/testPerformance.sh b/testPerformance.sh new file mode 100644 index 0000000..fa2ce45 --- /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 -- GitLab