Can I go?
$ bundle exec foreman start
Open a web browser: http://localhost:9393
In a terminal window:
# redis-server
In a separate terminal:
# rake
$ thor bathroom:status
> The john is not occupied.
You may need to use sudo for these commands:
$ cp scripts/john.init.d.sample /etc/init.d/john
$ chmod +x /etc/init.d/john
$ /etc/init.d/john start
We use JMeter to test server performance.
$ brew install jmeter
# Testing on production
$ RACK_ENV=production rake performance:test
# Testing locally
$ rake performance:test
Then wait. You will see output like:
summary + 9 in 35s = 0.3/s Avg: 14273 Min: 14174 Max:
14397 Err: 0 (0.00%)
summary = 21 in 70s = 0.3/s Avg: 15163 Min: 13002 Max: 20387
Err: 0 (0.00%)
The key metric is the 0.3/s
metric, which means that at the 35 second
mark, the server was able to respond to 0.3 requests per second.