Sha256: 55ba6cfd9ee54512587e0c282aba678f22b0ac988269cfb238e84216bcba4943

Contents?: true

Size: 1.92 KB

Versions: 18

Compression:

Stored size: 1.92 KB

Contents

= Performance

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.

== dd.ru

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).

== request.rb, response.rb, big_request.rb

These are micro-benchmarks designed to test internal components
of Unicorn.  It assumes the internal Unicorn API is mostly stable.

== Contributors

This directory is maintained independently in the "benchmark" branch
based against v0.1.0.  Only changes to this directory (test/benchmarks)
are committed to this branch although the master branch may merge this
branch occassionaly.

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
unicorn-0.8.4 test/benchmark/README
unicorn-0.8.2 test/benchmark/README
unicorn-0.8.3 test/benchmark/README
unicorn-0.9.0 test/benchmark/README
unicorn-0.9.1 test/benchmark/README
unicorn-0.9.2 test/benchmark/README
unicorn-0.5.0 test/benchmark/README
unicorn-0.4.1 test/benchmark/README
unicorn-0.4.2 test/benchmark/README
unicorn-0.7.1 test/benchmark/README
unicorn-0.5.1 test/benchmark/README
unicorn-0.5.4 test/benchmark/README
unicorn-0.8.1 test/benchmark/README
unicorn-0.5.2 test/benchmark/README
unicorn-0.5.3 test/benchmark/README
unicorn-0.6.0 test/benchmark/README
unicorn-0.7.0 test/benchmark/README
unicorn-0.8.0 test/benchmark/README