15 lines
422 B
Bash
Executable File
15 lines
422 B
Bash
Executable File
#!/bin/bash
|
|
. driglibash-args
|
|
#prerequisite: creation_repo.sh has been run
|
|
#remove the local copy
|
|
rm -rf performance_testing
|
|
|
|
section TEST0
|
|
echo "TEST 0 : case of classic cloning."
|
|
git clone $1
|
|
: '
|
|
mem0=$(du ./performance_testing | tail -n1 | tr -cd [:digit:])
|
|
bw0=$(grep -e "Receiving objects:" cloning_text| grep -o "[[:digit:].]* MiB ")
|
|
echo "memory usage in a classic cloning : $mem0"
|
|
echo "bandwidth usage : $bw0"
|
|
' |