PHP and VMware: SLOW
- From: "bernard_matthews" <bernard_matthews@xxxxxxxxxxxxx>
- Date: 18 Aug 2006 09:55:56 -0700
Hello.
I'm finding PHP really slow when it runs in VMware.
To test this, I wrote two benchmark scripts. One in perl, one in php
(attached below)
Both scripts call rand() 100000000 times.
On my ancient 1ghz sarge box:
php takes 3 minutes 28 seconds.
perl takes 1 minute 18 seconds.
php = 3 x perl
On my 3 ghz ubuntu 6.06 VMware instance, running php4:
php takes 2 minutes and 37 seconds.
perl takes 23 seconds.
php = 6 x perl
Why is php slower so much slower under VMware?
If anyone could help, I would really appreciate it.
Thanks
::::::::::::::
rand.php
::::::::::::::
<?
for ($j = 0; $j < 100000000; $j++) {
rand();
}
?>
::::::::::::::
rand.pl
::::::::::::::
#!/usr/bin/perl
for ($i=0;$i<100000000;$i++)
{
rand();
}
.
- Follow-Ups:
- Re: PHP and VMware: SLOW
- From: m2m tech support
- Re: PHP and VMware: SLOW
- Prev by Date: does PEAR auth expects the username & password encrypted in the database?
- Next by Date: Re: does PEAR auth expects the username & password encrypted in the database?
- Previous by thread: does PEAR auth expects the username & password encrypted in the database?
- Next by thread: Re: PHP and VMware: SLOW
- Index(es):
Relevant Pages
|