epicyon/scripts/benchmarks

31 lines
799 B
Plaintext
Raw Normal View History

2019-11-15 19:25:04 +00:00
#!/bin/bash
dir_name="epicyon"
if [ -d /etc/${dir_name} ]; then
cd /etc/${dir_name} || exit 0
2019-11-15 19:25:04 +00:00
else
if [ -d /opt/${dir_name} ]; then
cd /opt/${dir_name} || exit 0
elif [ -d /opt/epicyon-tor ]; then
dir_name="epicyon-tor"
cd /opt/${dir_name} || exit 0
elif [ -d /opt/epicyon-i2p ]; then
dir_name="epicyon-i2p"
cd /opt/${dir_name} || exit 0
elif [ -d /opt/epicyon-yggdrasil ]; then
dir_name="epicyon-yggdrasil"
cd /opt/${dir_name} || exit 0
fi
2019-11-15 19:25:04 +00:00
fi
2019-11-16 10:21:59 +00:00
2019-11-16 10:14:53 +00:00
echo ''
2019-11-16 10:21:59 +00:00
echo 'Digest calculation times'
journalctl -u ${dir_name} | grep "DIGEST|" | awk -F '|' '{print $2}' | sort -r | uniq | head -n 20
2019-11-16 11:03:02 +00:00
2019-11-16 13:25:44 +00:00
echo ''
echo 'Timings for GET'
journalctl -u ${dir_name} -r | grep "GET TIMING|" | head -n 50
2019-11-16 13:25:44 +00:00
2019-11-16 11:03:02 +00:00
echo ''
echo 'Timings for POST'
journalctl -u ${dir_name} -r | grep "POST TIMING|" | head -n 50