forked from TechEmpower/FrameworkBenchmarks
-
Notifications
You must be signed in to change notification settings - Fork 1
Setting up FrameworkBenchmarks for running Ratpack benchmark locally
rhart edited this page Jan 9, 2014
·
9 revisions
- Install VirtualBox
- Download Ubuntu Server 12.04LTS 64bit
- Create a new 64bit VM and install the downloaded Ubuntu on it.
- Login as the main user into the VM.
- Generate a ssh key:
ssh-keygen -t rsa - Ensure you can ssh into localhost without a password:
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys - Edit sudoers file (
sudo visudo) so that password is not required for sudo:%sudo ALL=NOPASSWD: ALL - Install git:
sudo apt-get install git - Clone Ratpack's FrameworkBenchmar repo:
git clone [email protected]:ratpack/FrameworkBenchmarks.gitand cd into it. You might also want to switch to the right branch, currently it's calledratpack-dev. - Install benchmark dependencies:
toolset/run-tests.py -s localhost -c localhost -i /home/<username>/.ssh/id_rsa -u <username> --install-software --list-tests. This will take a while. Probably more than an hour. - Run a benchmark for one framework:
toolset/run-tests.py -s localhost -c localhost -i /home/<username>/.ssh/id_rsa -u <username> --max-threads 8 --test ratpack --duration 10. Note that plaintext benchmark is currently broken. - Checkout results inside of
resultsdirectory
Ensure you rm -rf results before running the benchmark again - otherwise it will detect that it has previously run and won't do anything.
You can checkout other options for run-tests.py here.