Skip to content

Commit 17af33e

Browse files
committed
now the virtual environment is not deleted any more, such that it can be reused for the succesive benchmark run
1 parent c3e24d2 commit 17af33e

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

examples/benchmarks/incremental-KaSa/script_compare_working_set_size

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ for MODEL in "${MODELS[@]}"; do
240240
done
241241
done
242242

243-
python3 -m venv ./temp_python_install
243+
if [ ! -d "temp_python_install" ]; then
244+
python3 -m venv temp_python_install
245+
fi
244246
source ./temp_python_install/bin/activate
245247
pip3 install pandas -q
246248
pip3 install matplotlib -q
@@ -269,10 +271,11 @@ echo "📊 The latex table of the runtimes can be found in: $OUTPUT_LATEX_RUNTIM
269271
cmd=(python3
270272
"${SCRIPT_DIR}/plot.py" "${OUTPUT_DIR}experiments_output_mean.csv" "${OUTPUT_DIR}runtimes"
271273
)
272-
printf '%q ' "${cmd[@]}"
273-
printf '\n'
274+
if $VERBOSE; then
275+
printf '%q ' "${cmd[@]}"
276+
printf '\n'
277+
fi
274278
{ ${cmd[@]}; }
275279
echo "📈 The png plot of the runtimes can be found in: ${OUTPUT_DIR}runtimes.png"
276280

277-
deactivate
278-
rm -rf ./temp_python_install
281+
deactivate

examples/benchmarks/incremental-KaSa/script_disable_and_add_rules

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ for MODEL in "${MODELS[@]}"; do
347347
echo "Results of the incremental analysis: $STDOUT_OUTPUT_FILE_INCREMENTAL"
348348
done
349349

350-
python3 -m venv ./temp_python_install
350+
if [ ! -d "temp_python_install" ]; then
351+
python3 -m venv temp_python_install
352+
fi
351353
source ./temp_python_install/bin/activate
352354
pip3 install pandas -q
353355

@@ -376,4 +378,3 @@ fi
376378
echo "📊 The latex table of the runtimes can be found in: $OUTPUT_LATEX_RUNTIMES"
377379

378380
deactivate
379-
rm -rf ./temp_python_install

0 commit comments

Comments
 (0)