1 May 2003 03:17
Making performance work easier
Jim Nance <jlnance <at> intrex.net>
2003-05-01 01:17:48 GMT
2003-05-01 01:17:48 GMT
Hello All,
I have not done any mozilla work for a while so I decided to do a jprof
run and make one of the functions faster.
I chose a prominent function from the profile, redesigned the way it
worked, and reimplemented it. I did another jprof run and found that it
didn't even show up any more. I created a patch and filed a bugzilla bug
with the patch attached.
Next the module owner asked me a very reasonable question: How
much faster is your code, does it make a difference? And I have
no answer. I know it is somewhat faster because it disappeared from
the jprof profile, but jprof is a very crude profiling tool so that
does not mean much. I dont have a way to run the page load tests.
I dont have quantify nor a testharness to run it with.
I think this is a problem. It is understandable that module owners
want numbers before they churn their code. But it is bad to discourage
performance contributions from people who can not generate these
numbers.
Here is what I would like to see to address this problem. I would
like a way to submit patches to some mozilla.org robot which would
build the code with and without my patches, run performance and regression
tests and send me the results. My purpose in sending this mail is to
start a discussion about such a robot. I want to see what others think
of this idea, and see if it is worthwhile to persue this idea.
Thanks,
Jim
> as a shared resource.... A queue of incoming requests might grow
> pretty large which frustrates submissions and turn around times
I thought that perhaps the requests could be queued from bugzilla.
This at least ensures that there are bugs associated with the patches
people submit, and it also allows you to tie access control into the
bugzilla permissions.
> If anyone has the time to work on this I'd suggest the approach be to
> first set up a system that runs locally, and not as a remote robot.
I assume you mean locally to Netscape. Thats probably a good idea
but it probably means I cant help very much. Or perhaps I can. I
already have an account on stage.mozilla.org so I assume there is
not a huge problem with giving outsiders access to mozilla.org
machines.
> Some script automation that:
>
> pulls two trees
> auto pick up and applies patches to one tree
> runs builds on both trees,
> runs tests and deposits results
RSS Feed