News for hackers. Stuff that matters.
Re:Benchmarking Go and Python Web servers by traviscline on Wednesday February 23, 2011 @02:05PM (#2255283)
Added a basic gevent example here that is apparently about 10% better than the http.go wrt transaction rate.

https://github.com/traviscline/web_bench

(notice: I realize this is a highly synthetic benchmark and reading siege results like this is not good benchmarking)

Re:Benchmarking Go and Python Web servers by codysoyland on Wednesday February 23, 2011 @02:17PM (#2255335)
It's too bad the author didn't include gevent in the post, as it seems to be the fastest way to do concurrency with python (see http://nichol.as/benchmark-of-python-web-servers). I'm surprised it was faster than the Go example. I wonder if a Cython-based handler would take it even further...
Re:Benchmarking Go and Python Web servers by dchest on Wednesday February 23, 2011 @02:21PM (#2255352)
I don't see the use of regexp in gvent.py.
Re:Benchmarking Go and Python Web servers by traviscline on Wednesday February 23, 2011 @02:29PM (#2255398)
Good call, added it, initial run didn't show a huge difference.

edit: here are numbers from a few runs: gvent,http.go 361.43,386.68 354.69,397.15 388.96,377.69 424.81,430.34

http.go averaged 26% utilization gvent.py averaged 15% utilization

I'm embarrassed posting this because of how grossly unscientific this is..

Not quite as fast as I thought initially but likely faster than the other python competitors.

Re:Benchmarking Go and Python Web servers by dchest on Wednesday February 23, 2011 @02:42PM (#2255468)
Good. Next, there's a check for "GET" method and if request contains parameters at all (which returns 404 if not) in the Go version. Though, I don't think it will make a big difference.