Time running scripts in batch

I received the results back from my latest script and a blind monkey could have
accomplished more. 13 % successful.
I choose 10 timeouts ( average 8 seconds) and reran interactively and all but
one were stable and run in around 0.2 seconds.
The failure timed out on 3 seconds where batch took 10 seconds.
I don’t mind my results but i think you need to investigate, when you get a chance
why batch takes 8 seconds longer than interactive queries.