~edwargix/git.sr.ht

ref: 4558b995c2cc9df43f95895e2619275acad1b1b2 git.sr.ht/cloneperf -rwxr-xr-x 512 bytes
4558b995 — Adnan Maolood Update core-go 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
ts=$(date +"%Y-%m-%d_%H:%M:%S")
log=cloneperf-$ts.log
host=${host:-git.sr.ht}
printf 'cloneperf host=%s ts=%s notes=%s\n\n' "$host" "$ts" "$*" | tee -a $log

printf '%s\n' "$ ssh git@$host" | tee -a $log
/usr/bin/time -p ssh git@$host 2>&1 | tee -a $log

printf '\n' | tee -a $log

printf '%s\n' "$ git clone git@$host:~sircmpwn/scdoc" | tee -a $log
/usr/bin/time -p git clone git@$host:~sircmpwn/scdoc /tmp/scdoc-$ts 2>&1 | tee -a $log
rm -rf /tmp/scdoc-$ts

printf "\nResults written to %s\n" "$log"