- Use the Vagrantfile to create your box.
- Add the domains the benchmarks use to the box
/etc/hosts
file:- apache.maxmind
- phplib.maxmind
- phpext.maxmind
- vanilla.maxmind
- Run
sudo /vagrant/provision.sh
on the box.
$ curl -H "X-Forwarded-For: your.source.ip.address.here" http://phplib.maxmind
We use Siege:
$ siege -H "X-Forwarded-For: your.source.ip.address.here" -c 50 -t 60s http://apache.maxmind
To test with and without the Composer autoloader, remove the require 'vendor/autoload.php';
line from the appropriate PHP files.
To test the GeoIP PHP extension, enable it and restart Apache:
$ sudo ln -sf /vagrant/geoip.ini /etc/php5/conf.d/10-geoip.ini
$ sudo service apache2 restart