Performance testing packages?

4 views
Skip to first unread message

kgk

unread,
Nov 3, 2009, 7:02:28 PM11/3/09
to TurboGears

Is there a preferred or suggested package for pylons/turbogears
performance testing?
I would like to integrate performance measures into our nosetests and
wondered
if anybody could give some recommendations?

Thx.
Kris

Alice Bevan-McGregor

unread,
Nov 3, 2009, 7:08:44 PM11/3/09
to turbo...@googlegroups.com
Howdy!

I've been using repoze.profile.profiler's
AccumulatingProfileMiddleware configured to discard the first request
(to avoid template compilation and buried import statement overhead on
the initial request). I use the following code in my <pkg>/config/
middleware.py: make_app function:

from repoze.profile.profiler import
AccumulatingProfileMiddleware

app = AccumulatingProfileMiddleware(
app,
log_filename = config.get('web.profile.log',
'profile.prof'),
discard_first_request = asbool(config.get
('web.profile.discard', 'true')),
flush_at_shutdown = asbool(config.get
('web.profile.flush', 'true')),
path = config.get('web.profile.path', '/__profile__')
)

— Alice.

Reply all
Reply to author
Forward
0 new messages