Benchmarking django application using ab (apache benchmark)

372 views
Skip to first unread message

Subodh Nijsure

unread,
May 7, 2013, 12:24:00 PM5/7/13
to django...@googlegroups.com
Hi,

I have deployed a web site that using nginx for serving static content
and apache2 (mod_wsgi) to handle the django requests. I have optimized
obvious things that chrome browser show things like compression,
expiration, js minification etc.

Now I am looking at doing some bench marking of this setup.

Basically I have extracted the sessionid and csrftoken after I login
to my web site and then run

ab -n 1 -c 1 -C
"csrftoken=4BAfoZRrvvATWISgLcCIOOA963YpmNk0;sessionid=bxw1yy9jpmx1ox9y1nxfl8t8aptkkd0r"
http://mywebsite.com/customer/list

Is that how most people do the performance bench mark of the web site
or is there better way to keep tab on web site performance.

Is there another, better way to do stress testing and keeping tab of
django based web site?

-Subodh

Kevin Daum

unread,
May 8, 2013, 1:52:42 PM5/8/13
to django...@googlegroups.com
ab is one of the standard options. There are more listed here on StackOverflow. You could also check out loads, though it's still a prototype.

Kevin
Reply all
Reply to author
Forward
0 new messages