You are not logged in.

#1 2012-02-17 15:23:31

scorpiosun
Member
Registered: 2011-08-09
Posts: 2

XAMPP vs LAMP performance

Hi all, I really hope this isn't one of those obvious questions I'm gonna smack myself for, but I'm kind of a n00b with the setting-up of server environments. As far as I know it's not specifically Arch-related but I'm not sure where else to ask.

Up until recently I have been using XAMPP for all my local web development goodness, however I decided to take the plunge today and remove XAMPP in favour of installing Apache, PHP & MySQL separately as per the wiki's LAMP page. I installed eAccelerator too as XAMPP had shipped with this as standard. Once it was all set up to my liking I ran a test script which extracts statistics from ~270,000 rows of info in a CSV and prints out a basic benchmark using microtime() and memory_get_peak_usage(). Under XAMPP my script took around 3 seconds and used ~77mb. Under my new LAMP setup it takes around 4 seconds and uses ~208mb!

XAMPP's PHP version was 5.3.8 whereas now I had 5.3.10, but I can't seem to spot anything in either setup that would make such a difference in memory usage & overall performance. I don't want my new setup eating 3x the RAM it used to!

Cheers for your help folks.

Last edited by scorpiosun (2012-02-17 15:24:06)

Offline

#2 2012-02-17 19:43:40

ssfdre38
Member
From: South San Francisco CA
Registered: 2012-02-05
Posts: 6
Website

Re: XAMPP vs LAMP performance

well XAMPP (OS Apache MySQL PHP5 phpMyAdmin) is designed to be used by anybody that doesnt know how to install and set up a XAMP system (OS Apache MySQL PHP5), but since more and more linux distros are making it easy to get your own XAMP system going or on ArchLinux LAMP. really the difference is that with XAMPP, they come with all the files for the deamons but takes up a lot of space on your HDD and you might have to do some tweaking to make it seen by the public. LAMP just install the core files and what you need and uses less space on your HDD and is able to have more modules added to it like cURL or PDO or even mycript for phpMyAdmin. really i see that doing your own LAMP is better from the distro then from XAMPP


A Complex man who likes the simple things in life.
Owner of YourIRC networks at http://yourirc.net/ and ssfdre38.com

Offline

Board footer

Powered by FluxBB