CP2.2 beta redirect
flag
Messages 61 - 70 of 193 - Collapse all
/groups/adfetch?adid=vu0iPhIAAACYE1ndVB2h0LsrZGsCMm-_xyxpo7bMRVgpn9ZMKisPfQ
CP2.2 beta redirect - Email updates to me  
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
4.  dimitri pater  
View profile  
 More options Feb 7 2006, 2:28 pm
From: dimitri pater <dimitri.pa...@gmail.com>
Date: Tue, 7 Feb 2006 20:28:42 +0100
Local: Tues, Feb 7 2006 2:28 pm
Subject: Re: [cherrypy-users] Re: CP2.2 beta redirect

thank you, it works on the webserver
but not on localhost though,
it gets redirected to http://localhost/somepage
in stead of http://localhost:8080/somepage
but I guess that is easy to solve...
Thanks, Dimitri

On 2/7/06, Istvan Albert <istvan.alb...@gmail.com> wrote:

> > httptools.redirect() was deprecated in favor of the *exception*

> which, incidentally, is not a particulary good decision ...

> The following workaround was suggested, write a helper function and
> return that:

> def redirect(url):
>     cherrypy.HTTPRedirect(url).set_response()
>     return cherrypy.response.body

--
----
"All truth passes through three stages. First, it is ridiculed. Second, it
is violently opposed. Third, it is accepted as being self-evident."
~Arthur Schopenhauer
----
Please visit dimitri's website: www.serpia.org

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benchmarks - Email updates to me  
1.  Gustavo Niemeyer  
View profile  
 More options Feb 7 2006, 10:29 am
From: Gustavo Niemeyer <gust...@niemeyer.net>
Date: Tue, 7 Feb 2006 13:29:55 -0200
Local: Tues, Feb 7 2006 10:29 am
Subject: Benchmarks
Hello,

I'm researching a bit about current options to create a web
application (like everyone else, it seems :-) where there are
real speed constraints. I was quite happy to see the benchmark[1]
stating more than 500 connections per second, but I couldn't
reproduce that result in my own tests. Using the code below,
the command "ab2 -n 1000 http://localhost:8000/" states around
132 requests/second, which is way behind.

[1] http://www.cherrypy.org/wiki/CherryPySpeed

Is CherryPy slower since the benchmark was done?

The tested environment is:

  * Processor: Pentium M 1.7 Ghz
  * RAM: 512GB
  * Linux 2.6.12 (Ubuntu)
  * Load testing tool: ab2 from Apache2
  * CherryPy version: 2.2.0beta (SVN Rev. 956)

The code used is:

  import cherrypy
  class Root:
      @cherrypy.expose
      def index(self):
          return "OK"
  cherrypy.root = Root()
  cherrypy.config.update({'global': {
          'server.socket_port': 8000,
          'server.log_to_screen': False,
          'server.environment': 'production',
          }})
  cherrypy.server.start()

--
Gustavo Niemeyer
http://niemeyer.net


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
2.  Remi Delon  
View profile  
 More options Feb 7 2006, 12:38 pm
From: "Remi Delon" <r...@cherrypy.org>
Date: Tue, 7 Feb 2006 17:38:10 -0000
Local: Tues, Feb 7 2006 12:38 pm
Subject: Re: [cherrypy-users] Benchmarks

Did you have a look at
http://groups.google.com/group/cherrypy-devel/browse_thread/thread/4d... ?

Regards,

Remi.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3.  Gustavo Niemeyer  
View profile  
 More options Feb 7 2006, 1:09 pm
From: Gustavo Niemeyer <gust...@niemeyer.net>
Date: Tue, 7 Feb 2006 16:09:31 -0200
Local: Tues, Feb 7 2006 1:09 pm
Subject: Re: [cherrypy-users] Re: Benchmarks
Hey Remi!

> Did you have a look at [...]

Humm.. interesting. No, I wasn't aware that lowercase_api would
improve the performance meaningfully. CherryPy is now answering
up to 183 requests per second. I've also benchmarked behind
mod_python, and was able to get about 337 reqs/sec. Still behind
the 500 reqs/sec, but I can probably live with that.

I wonder if there's some kind of permanent analysis on those
numbers to warn developers if a change that affects performance
badly goes in. If there's no such test, might be worth thinking
about it.

Thanks for the pointer.

--
Gustavo Niemeyer
http://niemeyer.net


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
4.  Sylvain Hellegouarch  
View profile  
 More options Feb 7 2006, 1:19 pm
From: Sylvain Hellegouarch <s...@defuze.org>
Date: Tue, 07 Feb 2006 19:19:45 +0100
Local: Tues, Feb 7 2006 1:19 pm
Subject: Re: [cherrypy-users] Re: Benchmarks
Hi Gustavo,

There is no such test and as indeed it would be more than welcome in the
CherryPy world. If you have ideas go ahead :)

- Sylvain

Gustavo Niemeyer a écrit :


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
5.  Gustavo Niemeyer  
View profile  
 More options Feb 7 2006, 1:35 pm
From: Gustavo Niemeyer <gust...@niemeyer.net>
Date: Tue, 7 Feb 2006 16:35:46 -0200
Local: Tues, Feb 7 2006 1:35 pm
Subject: Re: [cherrypy-users] Re: Benchmarks

> There is no such test and as indeed it would be more than welcome in
> the CherryPy world. If you have ideas go ahead :)

I belive it would be fairly simple to put ApacheBench to run
on every committed revision with a few different CherryPy
setups, like the mentioned script. It may either send daily
analysis to the development mailing list, or have some kind
of trigger that sends a warning message if the number of
requests per second drops behind a certain limit.

> >up to 183 requests per second. I've also benchmarked behind
> >mod_python, and was able to get about 337 reqs/sec. Still behind
> >the 500 reqs/sec, but I can probably live with that.

Unfortunately I was wrong. The true value is 134 res/sec, so I'm
still looking for ways to improve the speed.

As a random point of comparison, plain mod_python does 586 reqs/sec
on the same environment, and twisted web does 407 (yes, different
frameworks yadda yadda yadda).

--
Gustavo Niemeyer
http://niemeyer.net


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
6.  pytrade  
View profile  
 More options Feb 7 2006, 1:20 pm
From: "pytrade" <vinjv...@gmail.com>
Date: Tue, 07 Feb 2006 10:20:00 -0800
Subject: Re: Benchmarks
So if you run cherrypy with mod_python you get nearly twice as many
requests per second? I knew it would  be higher but not this much
higher.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
7.  Gustavo Niemeyer  
View profile  
 More options Feb 7 2006, 1:40 pm
From: Gustavo Niemeyer <gust...@niemeyer.net>
Date: Tue, 7 Feb 2006 16:40:01 -0200
Local: Tues, Feb 7 2006 1:40 pm
Subject: Re: [cherrypy-users] Re: Benchmarks

> So if you run cherrypy with mod_python you get nearly twice as many
> requests per second? I knew it would  be higher but not this much
> higher.

No, I was wrong.. I broke the code without noticing, so ApacheBench
was running against a broken server (and being very fast at it ;-).
The real value is actually worse than the internal server (about 130
reqs/sec in my environment, against ~180 with internal server).

Apologies.

--
Gustavo Niemeyer
http://niemeyer.net


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
8.  PA  
View profile  
 More options Feb 7 2006, 2:01 pm
From: PA <petite.abei...@gmail.com>
Date: Tue, 7 Feb 2006 20:01:23 +0100
Local: Tues, Feb 7 2006 2:01 pm
Subject: Re: [cherrypy-users] Re: Benchmarks

On Feb 07, 2006, at 19:40, Gustavo Niemeyer wrote:

> The real value is actually worse than the internal server (about 130
> reqs/sec in my environment, against ~180 with internal server).

As a random data point, here is some recent benchmarks I ran against
cherrypy (subversion as of January 21st) and others:

[Cherrypy]
% python -V
Python 2.4.2
% python tut01_helloworld.py
% ab -n 10000 http://localhost:8080/
Requests per second:    164.92 [#/sec] (mean)
% ab -n 10000 -c 10 http://localhost:8080/
Requests per second:    164.77 [#/sec] (mean)

[Webrick]
% ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0]
% ruby webrick_compare.rb >& /dev/null
% ab -n 10000 http://localhost:4000/test
Requests per second:    37.90 [#/sec] (mean)
% ab -n 10000 -c 10 http://localhost:4000/test
Requests per second:    27.58 [#/sec] (mean)

[Mongrel]
% ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0]
% ruby simpletest.rb
% ab -n 10000 http://localhost:3000/test
Requests per second:    660.20 [#/sec] (mean)
% ab -n 10000 -c 10 http://localhost:3000/test
Requests per second:    386.31 [#/sec] (mean)

[LuaWeb]
% lua -v
Lua 5.1  Copyright (C) 1994-2006 Lua.org, PUC-Rio
% lua Test.lua
% ab -n 10000 http://localhost:1080/hello
Requests per second:    948.32 [#/sec] (mean)
% ab -n 10000 -c 10 http://localhost:1080/hello
Requests per second:    927.04 [#/sec] (mean)

[httpd]
% httpd -v
Server version: Apache/1.3.33 (Darwin)
% ab -n 10000 http://localhost/test.txt
Requests per second:    1218.47 [#/sec] (mean)
% ab -n 10000 -c 10 http://localhost/test.txt
Requests per second:    1186.10 [#/sec] (mean)

[lighttpd]
% lighttpd -v
lighttpd-1.4.9 - a light and fast webserver
% ab -n 10000 http://localhost:8888/test.txt
Requests per second:    3652.30 [#/sec] (mean)
% ab -n 10000 -c 10 http://localhost:8888/test.txt
Called sick today (fdevent.c.170: aborted)

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
9.  Sylvain Hellegouarch  
View profile  
 More options Feb 7 2006, 2:13 pm
From: Sylvain Hellegouarch <s...@defuze.org>
Date: Tue, 07 Feb 2006 20:13:06 +0100
Local: Tues, Feb 7 2006 2:13 pm
Subject: Re: [cherrypy-users] Re: Benchmarks
Interesting.

I can appreciate CherryPy being far behind lightttpd but I wonder why so
far away and what could be the main bottleneck.

- Sylvain

PA a écrit :


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google