Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
AndrewVSutherland
GitHub Repository: AndrewVSutherland/lmfdb
Path: blob/main/perfmon/random_timings.sh
1127 views
1
#!/bin/bash
2
# curl script to measure load times for top level LMFDB pages
3
while true
4
do
5
for object in "ArtinRepresentation/random" "GaloisGroup/random" "padicField/random" "ModularForm/GL2/TotallyReal/random" "EllipticCurve/Q/random" "EllipticCurve/random" "Genus2Curve/Q/random" "NumberField/random" "SatoTateGroup/random" "Lattice/random"
6
do
7
url=http://${1}/${object};
8
for i in `seq 1 $2`;
9
do
10
echo -e $url : $(curl -L -silent -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" ${url});
11
done;
12
sleep 30
13
done;
14
done;
15
16