
December 8th, 1999, 10:26 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
As a matter of fact, I just finished some testing on this. I created a script with 60 conditional blocks consisting of 20 echo statements each, and set the conditions to execute 50 of them. In one version of the script, the code was all in one file. In the second version, each conditional block include()ed its 20 echo statements, each from a different file.
I ran each script ten times through the time utility under FreeBSD Unix.
Inline:
0.987 real 0.112 user 0.007 sys
Includes:
1.138 real 0.106 user 0.007 sys
It appears the inline method executes a little faster but uses more CPU time. Please note that this is not very thorough testing.
------------------
Alan Little
Holotech Web Design
www.holotech.net/
|