From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=0.0 required=3.0 tests=MSGID_FROM_MTA_HEADER, TVD_RCVD_IP shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Joseph McDonald Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: rainbows slower? Date: Fri, 8 Jun 2012 09:04:48 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339171873 22198 80.91.229.3 (8 Jun 2012 16:11:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 16:11:13 +0000 (UTC) To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Fri Jun 08 18:11:09 2012 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PVv+eWJTlTcPTBR7Y/kdRAuF0zTwZk+T9rMGy+vNAjQ=; b=ABupK5XBhA0ZLJPN6r1h8JV8B26BmGrD+9MMGHRpVup9dppdjiizAdmR1btjMpjRBf kTfNT+9sQLlmgbwdUtDC/Pzq7j7gj9r1ap29Wjyvcun5n0odGNh6bTm00y9Bxep+42Vf 1fW0h2IrqxXiVWbdnpfGQZ59Zyj8AxOoAOgsa5HB+UNjFjQ+fXcxM3C0MDP1a9RRTPUB ypJEaJoIhU4oV1L1EfWuWfcHNWUGHKYnmZRPEyMmh1vmyWEr/6YR5mPtQsJhpzlDTK71 QWGpMI99HpEDLtgcfNEmtbwXuGPHfZXY/4TfwPMz1AHAgsNIdB5u45RgPc9DMLlbVTGV WRGg== X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:356 Archived-At: Received: from 50-56-192-79.static.cloud-ips.com ([50.56.192.79] helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sd1mC-0007rk-1m for gclrrg-rainbows-talk@m.gmane.org; Fri, 08 Jun 2012 18:11:04 +0200 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 871A93AFF6; Fri, 8 Jun 2012 16:11:02 +0000 (UTC) Received: from mail-qc0-f178.google.com (mail-qc0-f178.google.com [209.85.216.178]) by rubyforge.org (Postfix) with ESMTP id 53B2B3AFF6 for ; Fri, 8 Jun 2012 16:10:55 +0000 (UTC) Received: by qcse1 with SMTP id e1so1117326qcs.23 for ; Fri, 08 Jun 2012 09:10:55 -0700 (PDT) Received: by 10.229.135.196 with SMTP id o4mr2108620qct.9.1339171488857; Fri, 08 Jun 2012 09:04:48 -0700 (PDT) Received: by 10.229.86.210 with HTTP; Fri, 8 Jun 2012 09:04:48 -0700 (PDT) Hi, I have a "hello world" sinatra app, benchmark: ab -n 1000 -c 100 http://$mysite/ Total transferred: 264000 bytes HTML transferred: 13000 bytes Requests per second: 308.76 [#/sec] (mean) Time per request: 323.871 [ms] (mean) Time per request: 3.239 [ms] (mean, across all concurrent requests) If I put rainbows in front of it, I get: Total transferred: 272000 bytes HTML transferred: 13000 bytes Requests per second: 61.62 [#/sec] (mean) Time per request: 1622.745 [ms] (mean) Time per request: 16.227 [ms] (mean, across all concurrent requests) rainbow config looks like: worker_processes 7 # i'm on an 8 core system Rainbows! do use :EventMachine # sinatra app using "thin" worker_connections 1024 end config.ru looks like: require './webserver' run Sinatra::Application ruby version is: ruby 1.9.3p194 I tried telling apachebench to use keepalives (-k) and that slowed rainbows down more (and sped up the straight sinatra app). I have changed worker_processes and worker_connections with no effect. I added keepalive_timeout 0 to the Rainbows! block with no effect. any idea why rainbows is slower? I'd like to take advantage of all my cores. thanks, Joe _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying