From 39b7ed6b52ab098ab2d820bed4c360f120789627 Mon Sep 17 00:00:00 2001 From: eleonore12345 Date: Thu, 27 Jun 2024 19:31:53 +0200 Subject: [PATCH] bandwidth showing good on test1 --- performance_tests.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/performance_tests.sh b/performance_tests.sh index b43fb84..4945511 100755 --- a/performance_tests.sh +++ b/performance_tests.sh @@ -6,10 +6,9 @@ rm -rf performance_testing section TEST0 echo "TEST 0 : case of classic cloning." -git clone $1 -: ' +git clone --progress $1 2> cloning_text + mem0=$(du ./performance_testing | tail -n1 | tr -cd [:digit:]) -bw0=$(grep -e "Receiving objects:" cloning_text| grep -o "[[:digit:].]* MiB ") +bw0=$(grep -e "Receiving objects:" cloning_text| grep -o "[[:digit:].]* MiB " | tail -n1) echo "memory usage in a classic cloning : $mem0" echo "bandwidth usage : $bw0" -' \ No newline at end of file