diff --git a/bash/perf.sh b/bash/perf.sh index 394d53f..6fff67f 100755 --- a/bash/perf.sh +++ b/bash/perf.sh @@ -19,15 +19,23 @@ RESULT_DIR="$CUR_DIR/perfs/$SESSION" CORPUS_DIR="$CUR_DIR/perfs/$SESSION/CORPUS" mkdir -p "$RESULT_DIR" +mkdir -p "$CORPUS_DIR" -# +# Fichier où on stocke le temps d'execution TIMEFILE="$RESULT_DIR/time.txt" # Commandes -HARVEST="$CUR_DIR/harvest-perf.sh" TIME="/usr/bin/time --output "$TIMEFILE" --format %e" +HARVEST="$CUR_DIR/harvest-perf.sh" NET="" # "$TIME $APP" $TIME find ~ -type f -name '*.pdf' + +# Compilation des résultats +NB_PDF=$(find "$CORPUS_DIR" -type f -name "*.pdf"| wc -l) +NB_XML=$(find "$CORPUS_DIR" -type f -name "*.xml"| wc -l) +NB_JSON=$(find "$CORPUS_DIR" -type f -name "*.json"| wc -l) +NB_TOTAL=$(find "$CORPUS_DIR" -type f | wc -l) +SIZE_TOTAL=$(du -s "$CORPUS_DIR" | cut -f 1)