cd929f36dce0244620a7434ea6b7b09f76d1f54e blob 2014 bytes (raw)
Unicorn is pretty fast, and we want it to get faster. Unicorn strives
to get HTTP requests to your application and write HTTP responses back
as quickly as possible. Unicorn does not do any background processing
while your app runs, so your app will get all the CPU time provided to
it by your OS kernel.
A gentle reminder: Unicorn is NOT for serving clients over slow network
connections. Use nginx (or something similar) to complement Unicorn if
you have slow clients.
This is a pure I/O benchmark. In the context of Unicorn, this is the
only one that matters. It is a standard rackup-compatible .ru file and
may be used with other Rack-compatible servers.
unicorn -E none dd.ru
You can change the size and number of chunks in the response with
the "bs" and "count" environment variables. The following command
will cause dd.ru to return 4 chunks of 16384 bytes each, leading to
65536 byte response:
bs=16384 count=4 unicorn -E none dd.ru
Or if you want to add logging (small performance impact):
unicorn -E deployment dd.ru
Eric runs then runs clients on a LAN it in several different ways:
client@host1 -> unicorn@host1(tcp)
client@host2 -> unicorn@host1(tcp)
client@host3 -> nginx@host1 -> unicorn@host1(tcp)
client@host3 -> nginx@host1 -> unicorn@host1(unix)
client@host3 -> nginx@host2 -> unicorn@host1(tcp)
The benchmark client is usually httperf.
Another gentle reminder: performance with slow networks/clients
is NOT our problem. That is the job of nginx (or similar).
Standalone Rack app intended to show how BAD we are at slow clients.
See usage in comments.
Standalone Rack app intended to show how bad we are with slow uploaders.
See usage in comments.
This directory is intended to remain stable. Do not make changes
to benchmarking code which can change performance and invalidate
results across revisions. Instead, write new benchmarks and update
coments/documentation as necessary.
solving cd929f3 ...
found cd929f3 in unicorn.git
unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://yhbt.net/unicorn-public
git clone --mirror http://ou63pmih66umazou.onion/unicorn-public
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 unicorn-public unicorn-public/ https://yhbt.net/unicorn-public \
firstname.lastname@example.org email@example.com firstname.lastname@example.org mongrel-unicorn-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Example config snippet for mirrors.
Newsgroups are available over NNTP:
note: .onion URLs require Tor: https://www.torproject.org/
code repositories for project(s) associated with this inbox:
AGPL code for this site: git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git