#!/bin/bash

TS=`date +%s`

# BASE TESTS
/usr/sbin/httpd.worker -f /srv/www/etc/httpd.conf -DONE_PROCESS -DNO_LOG -DNO_ACL -DNO_FOAF &
sleep 2

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

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

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

pkill -9 httpd.worker; httpd-cleanup
