PugJr Posted December 15, 2009 Share Posted December 15, 2009 I used the same computer for both of these OS types. 1.: EasyPHP + Vista 2.: Ubuntu + PHP/MYSQL/APACHE2 Number 2 runs about 7 times faster than 1. Goes from 3.5 seconds to 0.5 seconds a page refresh. 7 times? How is that even possible to have such a huge difference? I was expecting number 2 to be slightly faster, but 7 times!? So really, whats up with this huge difference? Is it EasyPHP inefficiency? Vista? Or does PHP/MySQL/Apache2 just run that much faster on a Linux OS? The script is mostly querys from a database. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/ Share on other sites More sharing options...
trq Posted December 15, 2009 Share Posted December 15, 2009 There could be any number of variables adding up to get these results. Vista is renowned for being a bit of a memory hog, you would likely have had more services / processes running under windows than under Linux.... too many things come into play. I've been a Linux user now for probably 6-7 years and find it extremely frustrating in my new job having to use windows. It seems much slower at everything, the filesystem (NTFS) in particular just seem incredibly slow when it comes to reading / writing. I swear I spend half my day watching that freaking hour glass. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-977601 Share on other sites More sharing options...
keldorn Posted December 15, 2009 Share Posted December 15, 2009 There could be any number of variables adding up to get these results. Vista is renowned for being a bit of a memory hog, you would likely have had more services / processes running under windows than under Linux.... too many things come into play. I've been a Linux user now for probably 6-7 years and find it extremely frustrating in my new job having to use windows. It seems much slower at everything, the filesystem (NTFS) in particular just seem incredibly slow when it comes to reading / writing. I swear I spend half my day watching that freaking hour glass. I hated that hourglass, seen it all the time. That was until I put together a decent computer with a Quad core and 4GB of ram. I rarely ever see the hour glass anymore. The only time I see it is when there is something obviously buggy with the application itself, not becuase the cpu/ram is bottlenecked. Tell your employer atleast to put more ram into that computer at work. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-977613 Share on other sites More sharing options...
trq Posted December 15, 2009 Share Posted December 15, 2009 My machine at work is dual core, 4G ram. The OS leaves allot to be desired. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-977614 Share on other sites More sharing options...
keldorn Posted December 15, 2009 Share Posted December 15, 2009 My machine at work is dual core, 4G ram. The OS leaves allot to be desired. That sounds good, but I'm going guess since this is work station at a company, it probably doesn't have a shiny GPU in the pci express slot. So onboard graphics? Something I didn't mention, was before I built my pc , I bought a HD 3870 with 512 MB vram, and put into my HP compaq (Piece of crap pc with 1 core, with 512 RAM). The hour glass went away. But still couldn't go buck crazy and open like photoshop, and firefox at the same time. But there was certainly less hour glass problems. Right now I have an HD 4670 wit 1GB GDDR2 vram. (My onboard graphics is partly HD 3200 with 216 MB vram, Lol ) Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-977623 Share on other sites More sharing options...
trq Posted December 15, 2009 Share Posted December 15, 2009 Yeah, your likely right. Still it has been my experience that windows is generally allot less responsive. Especially when it comes to filesystem operations. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-977637 Share on other sites More sharing options...
Daniel0 Posted December 15, 2009 Share Posted December 15, 2009 Actually, at times I think the Windows 7 GUI feels more responsive than on my Ubuntu install. Right now, nautilus is using 600 MB memory. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-977663 Share on other sites More sharing options...
KevinM1 Posted December 15, 2009 Share Posted December 15, 2009 A lot of Windows slowdown can also be attributed to having a bunch of programs running in the background. I recently went through all of my startup programs and stopped all but the essentials from running. I was amazed at the speed increase. I pretty much run with just anti-malware programs running, and it's smooth sailing for me. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-977772 Share on other sites More sharing options...
.josh Posted December 15, 2009 Share Posted December 15, 2009 wow, another thinly veiled "my OS is better than yours" thread ftw. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-977809 Share on other sites More sharing options...
corbin Posted December 15, 2009 Share Posted December 15, 2009 Pug, the first thing that comes to mind is some kind of configuration change. Like maybe the MySQL query cache is enabled on the linux box and not Windows. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978011 Share on other sites More sharing options...
keldorn Posted December 15, 2009 Share Posted December 15, 2009 I remember using Apache,mysql, php on my windows computers some years back. It was slow as hell on windows. Even on localhost, I would refresh the page and will sometimes lag for 3 seconds. Definitely something there on windows that is slowing it down. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978063 Share on other sites More sharing options...
roopurt18 Posted December 15, 2009 Share Posted December 15, 2009 I'm going to chime in and agree with thorpe on the file system. NTFS is horrible. You have fragmentation problems that I've never seen occur in common file systems used by Linux. I don't know what it is about the internals, but file operations like searching are incredibly slow in comparison. Couple the NTFS file system with the absolute shit MS Search utility and a simple task like "Which files are consuming all my hard drive space?" becomes impossible to answer in a timely fashion. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978070 Share on other sites More sharing options...
corbin Posted December 15, 2009 Share Posted December 15, 2009 I remember using Apache,mysql, php on my windows computers some years back. It was slow as hell on windows. Even on localhost, I would refresh the page and will sometimes lag for 3 seconds. Definitely something there on windows that is slowing it down. Yeah, don't question the quality of your code or database design or anything. Then again, it wasn't until a little while back that the PHP team seemed to really care about Windows. As for the NTFS file system... At least it's not FAT32 anymore x.x. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978129 Share on other sites More sharing options...
roopurt18 Posted December 15, 2009 Share Posted December 15, 2009 I think the real important question is: "Is your site getting millions of hits and generating revenue?" If the answer is "No" then realistically, who cares if it takes .1s or 3s to load. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978137 Share on other sites More sharing options...
corbin Posted December 15, 2009 Share Posted December 15, 2009 3 seconds is just annoyingly slow though. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978148 Share on other sites More sharing options...
roopurt18 Posted December 16, 2009 Share Posted December 16, 2009 It gives you just enough time to alt+tab and reload the "Unread threads since last visit" link though. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978151 Share on other sites More sharing options...
.josh Posted December 16, 2009 Share Posted December 16, 2009 It gives you just enough time to alt+tab and reload the "Unread threads since last visit" link though. LOL spoken like a true phpfreak Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978153 Share on other sites More sharing options...
Daniel0 Posted December 16, 2009 Share Posted December 16, 2009 It gives you just enough time to alt+tab and reload the "Unread threads since last visit" link though. Heh... yeah that's what takes up most of the "182 days" SMF claims I've been online on this forum. Do that once two times per hour and you've spent one hour on the forums according to SMF. Quote Link to comment https://forums.phpfreaks.com/topic/185186-whats-going-on-here-in-efficency/#findComment-978160 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.