PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Dec 12, 2018 3:10 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Aug 08, 2005 10:54 pm 
Offline
DevNet Resident
User avatar

Joined: Fri Aug 16, 2002 8:57 am
Posts: 1834
Location: Watertown, MA
I think something is wrong. The tests seem to take about 2 minutes to run, regardless of the number of tests cases (1 single runner versus the top level All.php). The application itself loads almost instantaneously.

Looking at the process monitor I see that I have 1.5GB of free RAM, and processor load is about 30% on one processor, other processor is basically un-touched. I'm running locally on a Dual 2.7GHz PowerMac with 2.5GB RAM.

Any idea as to what's causing the overhead with simpletest? (I could understand if there were an appreciable difference between single test versus all tests that the reflection for finding test methods could be slightly slow, but it should scale....)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 12:07 am 
Offline
DevNet Master

Joined: Thu Jan 30, 2003 9:26 pm
Posts: 2893
Location: Glasgow, Scotland
Two minutes is a long time - A large group test might take a while but single test runners should be very quick.

I'm afraid I'm not sure what could be causing this.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 10:37 am 
Offline
DevNet Master
User avatar

Joined: Mon Oct 25, 2004 9:29 pm
Posts: 3698
Location: New Jersey, US
As with anything that takes a long time... Try profiling it!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 11:29 pm 
Offline
DevNet Resident
User avatar

Joined: Fri Aug 16, 2002 8:57 am
Posts: 1834
Location: Watertown, MA
I hate heisenbugs.... Add calls to micro-time it takes ~10 seconds for the full set of non-web tests. Remove the timing calls it goes back to over a minute... Might just leave the timing calls in as it seems to help -- but its not just a perception thing. Timed it 10 times on each with a psuedo-random order to avoid cacheing type effects.

All the time is inside the run (as expected) so file parsing/including isn't a problem and no funny loops happening.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 11, 2005 8:12 am 
Offline
DevNet Master
User avatar

Joined: Mon Oct 25, 2004 9:29 pm
Posts: 3698
Location: New Jersey, US
Ow, that's icky. Have you tried to use a non PHP-based profiler like APD?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group