Build Status Gem Version Gem

A High Performance HTTP Server for Ruby


require 'agoo'

server =, 'root')

class MyHandler
  def call(req)
    [ 200, { }, [ "hello world" ] ]

handler =
server.handle(:GET, "/hello", handler)
# To run this example type the following then go to a browser and enter a URL of localhost:6464/hello.
# ruby hello.rb


gem install agoo

What Is This?

Agoo is Japanese for a type of flying fish. This gem flies. It is a high performance HTTP server that serves static resource at hundreds of thousands of fetchs per second. A a simple hello world Ruby handler at over 100,000 requests per second on a desktop computer. That places Agoo at about 85 times faster than Sinatra and 1000 times faster than Rails. In both cases the latency was two orders of magnitude lower or more. Checkout the benchmarks on OpO benchmarks. Note that the benchmarks had to use a C program called hose from the OpO downloads to hit the Agoo limits. Ruby benchmarks driver could not push Agoo hard enough.

Agoo supports the Ruby rack API which allows for the use of rack compatible gems.



Releases are made from the master branch. The default branch for checkout is the develop branch. Pull requests should be made against the develop branch.


Follow @peterohler on Twitter for announcements and news about the Agoo gem.