hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Your eAccelator experience?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Your eAccelator experience?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-19-2007, 04:29 PM
ResellerPlanet ResellerPlanet is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Posts: 414

Your eAccelator experience?


Today I installed eAccelerator on one of my servers. It's a cPanel server with Zend Optimizer already installed (required for Zend Encoded scripts).

Before I installed the eAccelerator extension I ran a PHP benchmark script:
http://www.free-webhosts.com/php-benchmark-script.php

Before the installation I had an average result of 54ms.
After the installation I had an average result of 72ms.

That's when I was confused... So I removed the extension end ran the test again, and yep: 54ms again. Made me think: isn't eAccelerator supposed to speed up my scripts by caching opcode?

Does anyone have any good or bad experience with eAccelerator? Or maybe I'm not using the right benchmarking script?

I'm running PHP 5.2.1 with Zend Engine v2.2.0, Zend Extension Manager v1.2.0 and Zend Optimizer v3.2.4, and I installed eAccelerator 0.9.5.

Reply With Quote


Sponsored Links
  #2  
Old 03-21-2007, 09:37 AM
juangake juangake is offline
Web Hosting Guru
 
Join Date: Nov 2005
Location: Palma de Mallorca, Spain
Posts: 259
Did you checked that it was correctly installed? I mean # php -v or using "phpinfo()" function

Reply With Quote
  #3  
Old 03-21-2007, 10:41 AM
ResellerPlanet ResellerPlanet is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Posts: 414
Yes I checked both php -v (for CLI) and the phpinfo() function.

Reply With Quote
Sponsored Links
  #4  
Old 03-21-2007, 10:58 AM
timdorr timdorr is offline
Formerly orange-y
 
Join Date: Nov 2001
Location: Atlanta, GA
Posts: 632
First, eA only affects the actual compilation of the script, not it's execution. So, a script designed to test the speed of PHP won't be effective at showing off it's speed. Something large with a lot of code, such as IPB, will more effectively show it off, since it's caching thousands of lines of code.

Secondly, that script runs way too quickly to be statistically significant. It should last at least a few seconds. Your accuracy level is far too low when dealing with numbers that small.

Finally, remember that execution time is measured inside the script itself here. So, the execution time is measured *after* the script has already been compiled. It will only affect the time if it has a bunch of include()'s in there that require a subsequent compilation step during the runtime. Again, this is why large scripts shine with eA.

Instead, run it from the command line like so:
time php php-benchmark-script.php

The time command tracks the execution time of any application. Be sure to run it twice in a row rapidly to ensure you're getting the full effect of caching.

__________________
Former owner of A Small Orange
New owner of <COMING SOON>

Reply With Quote
  #5  
Old 03-21-2007, 01:47 PM
ResellerPlanet ResellerPlanet is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Posts: 414
Thanks for the tip, I'll use the "time" command with Modernbill or vBulletin.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Monitoring Service Site24x7 Adds Apdex Scoring Feature - HostingCon 2012 Web Hosting News 2012-07-18 13:01:01
Hivelocity Launches Cloud Hosting, Virtualization Site to Simplify Customer Experience Web Hosting News 2012-07-18 11:58:53
eTail Boston 2012 Web Hosting Events 2012-08-07 17:07:48
Cloud Host StratITsphere Names Four Senior Executives Including New VP and COO Web Hosting News 2012-02-29 15:52:31
Data Center Firm RagingWire Names VP of Information Technology Web Hosting News 2011-11-22 15:15:19


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?