I installed Zen Cart for the first time last week and everything worked fine, but it was very slow, even with no products in it. I have been working with someone else to try to figure out if it's my Zen Cart installation or if it's my server, and we're still not sure. What I need is to figure out if it's a problem with my Apache, PHP, MySQL, Zen Cart.
I wrote the code below to perform 64million iterations of nothing (it takes about 9 seconds to finish). If I compare my times to others who have similar servers and mine are close, then I know that PHP and Apache are not the issue, which means that it's probably my MySQL or Zen Cart. Or if my times are much longer than others' times, then I know the problem is either PHP or Apache and it has nothing to do with Zen Cart or MySQL.
So if anyone is reading this and has an extra 60 seconds to spare, could you please save a .PHP file on your server with the following code in it and run it a few times and post some of your times, or at least the High, Low and Average after of a few runs. And don't for get to add your server's specs like Apache Version, PHP Version, Server CPU & RAM and anything else you think is relevant!
A HUGE thank you to anyone who takes the time to do this for me. It only takes a minute or two of your time and it helps me out GREATLY!Code:<html> <body> <? $Multiplier = 400; $time_start = microtime(true); for ($i=0; $i<$Multiplier; $i++) { for ($j=0; $j<$Multiplier; $j++) { for ($k=0; $k<$Multiplier; $k++) { } } } $time_end = microtime(true); $time = $time_end - $time_start; echo 'Test took ' . $time . ' seconds'; ?> </body> </html>



