On my machine i get these results:
Win32 (PHP 5.2.1 CLI)
Windows has very slow filesystem layer (compared to Linux),
unfortunately. Which means things that do more filesystem (like
require_once that should resolve file pathes) are slower. Realpath cache
should make it better to a measure.
Any
[EMAIL PROTECTED] wrote:
Wow thats fast!
On my machine i get these results:
Win32 (PHP 5.2.1 CLI)
require_once - 1.7735 sec
myrequire_once - 1.0973 sec
I made two benchmarks one with relative paths and one with full paths.
The full paths:
Here the benchmarks with relative paths:
Ubuntu
On 4/24/07, Antony Dovgal <[EMAIL PROTECTED]> wrote:
On 04/24/2007 02:17 PM, [EMAIL PROTECTED] wrote:
> Wow thats fast!
>
> On my machine i get these results:
> Win32 (PHP 5.2.1 CLI)
>
> require_once - 1.7735 sec
> myrequire_once - 1.0973 sec
>
>
> is that with the sources i just send?
Yes, of c
On 04/24/2007 02:17 PM, [EMAIL PROTECTED] wrote:
Wow thats fast!
On my machine i get these results:
Win32 (PHP 5.2.1 CLI)
require_once - 1.7735 sec
myrequire_once - 1.0973 sec
is that with the sources i just send?
Yes, of course.
But I'm using Linux, not windows.
--
Wbr,
Antony Dovgal
-
On Tue, 24 Apr 2007, [EMAIL PROTECTED] wrote:
> Wow thats fast!
>
> On my machine i get these results:
> Win32 (PHP 5.2.1 CLI)
You use windows, you lose... Don't think that any sort of benchmarking
on Windows makes sense...
regards,
Derick
--
PHP Internals - PHP Runtime Development Mailing L
On 04/24/2007 03:01 PM, Marco Tabini wrote:
On 24-Apr-07, at 7:00 AM, Antony Dovgal wrote:
Yes, of course.
But I'm using Linux, not windows.
Maybe you're even using a machine that is more powerful than his...
Maybe.
But I doubt that powerful machines execute internal functions faster than
On 24-Apr-07, at 7:00 AM, Antony Dovgal wrote:
Yes, of course.
But I'm using Linux, not windows.
Maybe you're even using a machine that is more powerful than his...
Mt.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Wow thats fast!
On my machine i get these results:
Win32 (PHP 5.2.1 CLI)
require_once - 1.7735 sec
myrequire_once - 1.0973 sec
is that with the sources i just send?
Am 24.04.2007, 12:10 Uhr, schrieb Antony Dovgal <[EMAIL PROTECTED]>:
On 04/24/2007 01:07 PM, [EMAIL PROTECTED] wrote:
Hello e
On 04/24/2007 01:07 PM, [EMAIL PROTECTED] wrote:
Hello everyone,
when testing speed of includes and requires i found that "require_once"
seems to be very slow in comparison to "require". Even worse
"require_once" seems to be slower than a php function "myrequire_once".
This is true not onl
require_once verifies (via stat()) each path component in the path
being loaded so that it can canonicalize it to check it against the
canonicalized list of already-required files.
Run your script below under strace and you will see all of those stats
gumming up the works.
Note also that if you
Hello everyone,
when testing speed of includes and requires i found that "require_once"
seems to be very slow in comparison to "require". Even worse
"require_once" seems to be slower than a php function "myrequire_once".
This is true not only for cli but also when using apc or eAccelerator.
11 matches
Mail list logo