#!/bin/bash

TS=`date +%s`

# FOAFSSL TESTS
/usr/sbin/httpd.worker -f /srv/www/etc/httpd.conf -DONE_PROCESS -DNO_LOG -DAUTHN_WEBID &
sleep 2

#ab -qn1000 https://localhost/Empty > httpd_foafssl_direct.$TS.log

#stunnel stunnel-null.conf
#ab -qn1000 http://localhost:8443/Empty > httpd_foafssl_stunnel-null.$TS.log
#pkill -9 stunnel

stunnel stunnel-presbrey.conf
ab -qn1000 http://localhost:8443/Empty > httpd_foafssl_stunnel-presbrey.$TS.log
pkill -9 stunnel

pkill -9 httpd.worker; httpd-cleanup
