Skip to content
Permalink
Browse files

update https_bench.sh & centminmodbench.sh

  • Loading branch information...
centminmod committed Jun 11, 2019
1 parent b2c1197 commit 49439f32526fc47e40876f9f1eaad4a12c3eadb4
Showing with 14 additions and 4 deletions.
  1. +11 −3 centminmodbench.sh
  2. +3 −1 https_bench.sh
@@ -21,7 +21,7 @@ SCRIPTNAME=centminmodbench.sh
SCRIPTAUTHOR='George Liu (eva2000)'
SCRIPTSITE='http://centminmod.com'
SCRIPTGITHUB='http://bench.centminmod.com'
VER=0.9.7
VER=0.9.8
###############################################################
EMAIL='youremail@yourdomain.com'
DEBUG='n'
@@ -936,7 +936,12 @@ phpi() {
}

changedir() {
cd ${DIR_TMP}/php-${PHPVER}
if [[ ! -d "${DIR_TMP}/php-${PHPVER}" ]]; then
pushd "${DIR_TMP}"
tar xzf php-${PHPVER}.tar.gz
popd
fi
cd "${DIR_TMP}/php-${PHPVER}"
}

fbench() {
@@ -982,7 +987,10 @@ fmicrobench() {
cecho "-------------------------------------------" $boldgreen

changedir
touch $PHPMICROBENCHLOG
if [[" -d ch $PHPMICROBENCHLOG" ]]; then
tar xzf php-5.6.40.tar.gz
fi
tou"ch $PHPMICROBENCHLOG"
echo -e "\n$(date)" >> $PHPMICROBENCHLOG
for ((i = 0 ; i < $RUNS ; i++)); do
{
@@ -8,7 +8,7 @@
# variables
#############
DT=$(date +"%d%m%y-%H%M%S")
VER='1.2'
VER='1.3'
SLEEP_TIME='10'
HTTPS_BENCHCLEANUP='y'
TESTRUNS='5'
@@ -241,6 +241,8 @@ parsed() {
# encoding
echo
cat "${CENTMINLOGDIR}/h2load-nginx-https-${DT}.log" | grep -v 'Process Request Failure:' | grep -A14 'h2load -t' | sed -e 's|TLS Protocol:|Protocol:|g' -e 's|Server Temp Key|Server-Temp-Key|g' -e 's|Application protocol|Application-protocol|g' | grep -o '\Accept-Encoding: .\{4\}' | sed -e 's|Accept-Encoding: ||g' > /tmp/encoding.txt
# remove unwanted characters
sed -i "s|'||g" /tmp/encoding.txt
# started
echo
cat "${CENTMINLOGDIR}/h2load-nginx-https-${DT}.log" | grep -v 'Process Request Failure:' | grep -A14 'h2load -t' | sed -e 's|TLS Protocol:|Protocol:|g' -e 's|Server Temp Key|Server-Temp-Key|g' -e 's|Application protocol|Application-protocol|g' | awk -F ', ' '/requests: / {print $2}' | sed -e 's| started||g' > /tmp/started.txt

0 comments on commit 49439f3

Please sign in to comment.
You can’t perform that action at this time.