2024-06-27 11:48:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
. driglibash-args
|
2024-06-27 17:26:06 +00:00
|
|
|
#prerequisite: creation_repo.sh has been run
|
|
|
|
#remove the local copy
|
|
|
|
rm -rf performance_testing
|
|
|
|
|
|
|
|
section TEST0
|
|
|
|
echo "TEST 0 : case of classic cloning."
|
2024-06-27 17:31:53 +00:00
|
|
|
git clone --progress $1 2> cloning_text
|
|
|
|
|
2024-06-27 17:26:06 +00:00
|
|
|
mem0=$(du ./performance_testing | tail -n1 | tr -cd [:digit:])
|
2024-06-27 17:31:53 +00:00
|
|
|
bw0=$(grep -e "Receiving objects:" cloning_text| grep -o "[[:digit:].]* MiB " | tail -n1)
|
2024-06-27 17:26:06 +00:00
|
|
|
echo "memory usage in a classic cloning : $mem0"
|
|
|
|
echo "bandwidth usage : $bw0"
|