4. PHP as an
Interpreted Language
➔ Receive Request (from Apache/Nginx)
➔ Read file from HHD/SSD
➔ Parse file
➔ Compile into OpCodes
➔ Execute through Zend Engine
➔ Render Output
Davey Shafik:
PHP Performance I: Everything You Need to Know about OpCode Caches
5. Back to the Problem with
Frameworks
● Framework design requires
many files
● PHP lifecycle runs for every
file called during runtime
(without caching)
● Framework load happens
for EVERY request
8. Benchmarks
Operating System: Mac OS X Lion 10.7.4
Web Server: Apache httpd 2.2.22
PHP: 5.3.15
CPU: 2.04 Ghz Intel Core i5
Main Memory: 4GB 1333 MHz DDR3
Hard Drive: 500GB SATA Disk
15. OK, What Do I Start?
~$ sudo apt-get install php5-dev libpcre3-dev gcc make
~$ git clone git://github.com/phalcon/cphalcon.git
~$ cd cphalcon/build
~$ sudo ./install
21. Roll the Credits
● Phalcon Development Team
– phalconphp.com
● Davey Shafik
– PHP Performance: Under The Hood
– PHP Performance I: Everything You Need to Know
about OpCode Caches
● MemeGenerator/KnowYourMeme