Posts Tagged ‘IIS’

PHP Performance Test : Linux & Windows

Identical Hardware was used to make the tests.

  • Intel Core2Duo 2.4 GHz
  • 2 GB DDR2 RAM
  • 160 GB SATA 7200 RPM
  • Windows Server 2003/Ubuntu

PHP on Linux Versus PHP on Windows

  • RAW statement execution is faster on Windows.
  • Function Calls are faster on Windows
  • Object Creation & Access are faster on Linux with PHP 5.2 but faster on Windows with PHP 5.3
  • Library calls are faster on Linux. (Example: Encryption process is 3-5 times faster on Ubuntu.)
  • File Access is faster on Linux by a small percentage, except for file copy operations which is as much as 60% slower on Windows probably due to the ACL advanced security.
  • MySQL access with Linux is faster by more than a little and on Windows, MySQL access deteriorates in version 5.3
  • PostgreSQL performance is very close on both platforms (within 6/100 of a second for 1000 Operations) – It’s faster on Windows and faster still on Windows with PHP 5.3
  • MS SQL Server access from PHP 5.2 on Windows is marginally slower than MySQL access on Linux.