Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
compare Rack::TryStatic with middleman
# Procfile
web: bundle exec thin start -p $PORT -e PRODUCTION
$ foreman start #=> middleman rack
$ ab -n 1000 -c 1 http://localhost:5000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: thin
Server Hostname: localhost
Server Port: 5000
Document Path: /
Document Length: 1648 bytes
Concurrency Level: 1
Time taken for tests: 18.913 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 1809000 bytes
HTML transferred: 1648000 bytes
Requests per second: 52.87 [#/sec] (mean)
Time per request: 18.913 [ms] (mean)
Time per request: 18.913 [ms] (mean, across all concurrent requests)
Transfer rate: 93.40 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 12 19 12.2 13 79
Waiting: 12 19 12.2 13 79
Total: 12 19 12.2 14 80
Percentage of the requests served within a certain time (ms)
50% 14
66% 14
75% 15
80% 16
90% 46
95% 47
98% 50
99% 54
100% 80 (longest request)
====
# Procfile
web: bundle exec thin start -R web.ru -p $PORT -e PRODUCTION
$ foreman start #=> use Rack::TryStatic
$ ab -n 1000 -c 1 http://localhost:5000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: thin
Server Hostname: localhost
Server Port: 5000
Document Path: /
Document Length: 1648 bytes
Concurrency Level: 1
Time taken for tests: 1.076 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 1824000 bytes
HTML transferred: 1648000 bytes
Requests per second: 929.27 [#/sec] (mean)
Time per request: 1.076 [ms] (mean)
Time per request: 1.076 [ms] (mean, across all concurrent requests)
Transfer rate: 1655.26 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 1 1 1.9 1 27
Waiting: 0 1 1.9 1 27
Total: 1 1 1.9 1 27
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 2
98% 2
99% 4
100% 27 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment