Dogtail gets around this problem by adding a sleep after every action;
the duration of the sleep is configurable; I've occasionally tried
removing it, but so many scripts break or become unreliable that I
prefer to err on the side of reliability: dogtail's main focus has been
in testing functionality, rather than performance.
What you will be able to see from dogtail is if an application starts
taking a lot longer than before to bring up its UI, or to respond to
input. So it should be possible to get a coarse estimate of "it's
slower", or "it's faster", which could be a useful metric.
If anyone wants to take this up, or has further ideas, we might be able
to add some kind of performance monitoring mode into dogtail.
Ideas?
Dave