Posts tagged performance

WP Super Cache Vs W3 Total Cache Vs WP Fastest Cache Vs Hyper Cache Vs Quick Cache Vs Wordfence Security

Yes i know plenty of wordpress cache plugins comparisons posts, but i went around checking those and most are just a matter of opinion and taste or had some good data on performance both on the frontend and the backend of wordpress, my sites tend to have some optimisations built in mostly on the server so even with plugin there is some cache going on both on php and mysql as well as using nginx as a reverse proxy for the static files.

So i went ahead and made a basic wordpress site with one of the official themes and some random content, good enough, then checked some of the memory consumption and speed inside wordpress with the P3 Plugin and used Gtmatrix and Google Pagespeed to check the performance on the page, i also checked server side but as far as i can tell all the plugins didn’t use enough resources to be negligible, so what are my findings:

Performance Comparison of WordPress Cache Plugins

Cache Plugin Memory (sec) Speed Size (KB) Requests Pagespeed
No Plugin 0 5.49 965 32 75/100
WP Super Cache 0.084 5.0 962 33 75/100
W3 Total Cache 3.6 11.33 965 33 75/100
WP Fastest Cache 0.083 4.7 757 30 90/100
Hyper Cache 0.008 5.0 961 32 75/100
Hyper Cache + Autoptimize 0.097 6.7 690 24 90/100
Quick Cache 0.04 4.93 961 32 75/100
Quick Cache + Autoptimize 0.1 5.44 696 24 91/100
Wordfence Basic 0.15 6.97 965 33 75/100
Wordfence Falcon Engine 0.14 5.63 762 34 90/100

Notes: I’ve added Autoptimize to the cache plugins that don’t have the ability to combine and minify code, to see if it helped. Also note that all of these results besides pagespeed are averages i did test 3 times to make sure, although gtmatrix does use random servers to check so the speed part can be a bit off, so dont take it literally its more important the size and requests as well as overall pagespeed ranking for true performance, yes i know i could have used a fixed server but i wanted a more normal usage scenario.

No Plugin

Like i said above by default my sites work and cache well enough to rate a standard 75/100 on Pagespeed, also enabling by default gzip and other small wordpress tweaks help too, still its only here as reference point, of course most wordpress sites would rate a bit lower.

WP Super Cache

I’ve used it a lot in the past, still i’ve moved on to other cache plugins because its a bit like W3 Total Cache, it has become with time less user-friendly, from all the plugins it was the most troublesome to turn on and to turn off (leaves a lot of stuff behind) also with default settings it didn’t cache much, also one of the reasons i left was that sometimes updates would kill my sites, its still a standard but i think its not good enough anymore.

W3 Total Cache

This one is WP Super Cache on steroids, im sure its awesome since it has everything and then some, and although a bit easier to setup than it used to be, its kinda one that need a lot, i mean A LOT of pampering, it should only be used on large sites and sites where you control the server side and can enable the caches that W3 will use, also on my test and with default settings on it clearly was the worst plugin of them all, probably cause i should have changed something somewhere.

WP Fastest Cache

Although this plugin kinda broke a part of the wordpress backend (probably a css out of place), it was one of the most complete and simple plugins and you can see that it did a pretty good job and i didn’t even enable all the functions, it incorporates pretty much everything you expect in a small package, however 2 things keep me from using it, first there is no control over the html/js/css minify, and from my experience most my sites would break if i cant tweak this (Autoptimize does give you that control) the second is that the panel tries to ping ipinfo.io i don’t like plugins that do stuff like that.

Hyper Cache

The one I’m currently using on most of my sites, its simple clean and to the point and as you can see it does its job, besides one nagging issue when the plugin or wordpress updates the plugin seems to stop working and you get the “You must save the options since some files must be updated.” still unlike WP Super Cache the site doesn’t stop working, so it a safe and good plugin with very low memory consumption.

Quick Cache

I like this one, its has a nice panel, its simple and it worked just fine, still some of its best features are hidden away for a premium package and well that makes it under perform, i would understand if these features were more high end stuff like using CDN’s or tweaks around server side, but things like minify should be part of the basic feature set and as such this plugin is comparable with Hyper Cache but with more resource usage.

Extras to Consider

Wordfence Security

Its mostly a security/firewall plugin for your site that also has a caching plugin built in, so why not try it out, it has 2 settings so i tried them both, the basic and their so called falcon engine, i did see a improvement and it worked fine, still its of course a much bigger plugin that does a lot of things besides the caching, but if you are looking for both a security plugin and a cache plugin, this might be good for you.

Autoptimize

Its a plugin that minifies html/css/js and combines it, it can do it both on the head or move those scripts to the end of the body to help the page load, its also very flexible and you can skip files or tweak so it doesn’t break your site, some of the other plugins had these features or part of it, but this plugin gives you complete control and as such is a nice combination with other caching plugins.

So what was my choice?

Ill keep using Hyper Cache, it works well, the feature set is good enough and it doesn’t break my site ever, when i need to give a bit more i add Autoptimize or if its on Cloudflare i just tweak the html/css/js from there, it was my choice about a year ago when i move away from WP Super Cache and as far as i can tell it still was the best choice.

Review LibreOffice 3.6 Vs OpenOffice 3.4 Vs MsOffice Vs iWorks (on Win/Mac/Linux)

So there was a lot of confusion and some complaints about my previous faceoff OpenOffice vs LibreOffice, some stuff was deserved (not providing the test files was silly, but i did use office documents so i couldn’t without messing with them), making a strange graph with strange values, not including the other operating systems even though the results were close, so I’m fixing all of this on this review, it will be simple and similar in point (comparison of performance for a small business office), because im doing this review as much for me as anyone else, in an office setting, were performance is the most important thing followed by a responsive layout and good formatting (stuff like compatibility or features are not as important since all of the software here has the features we want and used for years!).

This is the setup i will be using (and yes i wont be using my ssd powered hardware, because i dont have any at the office):

  • Windows 7 – Intel T3200 2Ghz (2 Cores) – 3GB – HD 7200RPM.
  • Ubuntu 12.04 – (with gnome classic of course, unity?… please…) Same specs as Win7, its dual boot.
  • Mac OSX 10.6.8 – Intel Core 2 Duo 2.4Ghz (2 Cores) – 4GB – HD 7200RPM.

The files i will be using are (you can get them here):

  • Small Excel File – 44KB
  • Large Excel File – 3.3MB
  • Small Doc File – 80KB
  • Large Doc File – 22MB

Why no OpenDocument (.odf or .od) or Office Open XML (.docx or .xlsx)? Well cause 90% of our files are .xls or .doc and normally when we receive in any other format, we convert it to .xls or .doc (Office 2003 format), as well as LibreOffice 3.5 (what we are using now) can pretty much open any file-type, so i’m aiming to what we normally use.


For the software, all operating systems are up to date, i’ve disabled as much software as i can from all of them prior to the tests (that means, anti-virus, dropbox, etc), also on windows 7 im using Ms Office 2003 and on Mac im using Office 2008 and iWork 09, the reason being these are the only ones i own and its mostly for comparison purposes, all installations were on the typical settings and on Mac i did close the software every-time, so hot start was with the program fully closed.

Libreoffice and Openoffice need to do some tweaks on first run, so i did first runs with no files just to finish that, also for each cold start, the measurement is the time of the first run of the file (this time around, no averages!), time is as follows 1:15:30.45 (1 hour, 15 minutes, 30 seconds and 45 centiseconds), also only added the CPU on the large .doc because that was the only one that freaked out the Office’s, on all the other files CPU dropped to 0 or very near it after loading.

Windows 7

Small .xls Large .xls Small .doc Large .doc
cold hot mem cold hot mem cold hot mem cold hot mem CPU%
LibreOffice 3.6 21.0 5.12 46.3MB 7.38 6.30 50.7MB 6.67 3.85 44.6MB 1:18.88 1:18.71 124.7MB 50
OpenOffice 3.4 9.64 4.60 36.7MB 5.57 4.89 39.2MB 5.99 3.53 32.5MB 2:13.42 2:14.91 114.3MB 20/30
MsOffice 2003 1.83 0.72 3MB 1.71 1.05 8.6MB 2.40 0.79 9.9MB 6.36 5.45 25.2MB 15

Clear winner here is MsOffice 2003 blazes past LibreOffice 3.6 and OpenOffice 3.4, still its kinda weird that altough nitpicking, its OpenOffice that still nudges past LibreOffice and takes second place, and even on the large .doc where it took almost 1 more minute to load than LibreOffice it still was way more responsive after loading, while LibreOffice was hanging and lagging hard (using a full core) and it also crashed on shutting down.

Mac OSX 10.6.8

Small .xls Large .xls Small .doc Large .doc
cold hot mem cold hot mem cold hot mem cold hot mem CPU%
LibreOffice 3.6 14.11 10.94 124 11.94 11.58 133 12.71 10.83 131 39.71 39.44 222 100
OpenOffice 3.4 15.40 11.96 125 12.81 12.55 133 12.81 11.56 125 3:03.75 3:04.01 204 2
MsOffice 2008 40.60 15.38 151 19.55 18.80 171 19.90 17.31 177 18.57 17.76 183 6
iWork 09 1:55.53 10.1 199 15.61 15.63 188 8.66 6.21 171 4:31.28 3:28.0 479 45

First things first, the winner here is pretty much LibreOffice 3.6, still it seems to struggle hard on the large .doc, it hangs hard and has a hard time with it (although it opened the file surprisingly fast) the biggest loser here is iWork, since not only does it struggle to open files but between all the Office’s it was the only one that had bad formatting, MsOffice 2008 was good enough on everything.

Ubuntu 12.04

Small .xls Large .xls Small .doc Large .doc
cold hot mem cold hot mem cold hot mem cold hot mem CPU%
LibreOffice 3.5.6.2 5.16 2.82 36 5.03 4.04 42 5.06 3.11 30 1:13.32 1:14.02 46 6
LibreOffice 3.6 6.86 4.13 38 6.47 5.43 43 5.28 4.06 34 41.89 41.73 90 108
OpenOffice
3.4
10.19 4.37 35 6.11 5.82 44 5.16 4.29 27 2:58.73 2:53.53 80 110

WTF! All 3 Offices performed really great, the winner here is LibreOffice 3.5, but not by a wide margin, and on the large .doc all of them suffered on one thing or another, LibreOffice 3.5 had bad formatting on the large .doc, but was pretty responsive after loading, LibreOffice 3.6 and OpenOffice 3.4 were both lagging hard and made it almost impossible to view or edit the large .doc.

Conclusion

Here is a quick chart of best performance (with whatever operating system works best) for the small .xls and .doc, what we get here is that if you want best performance it depends a lot on the operating system, for Windows 7, MsOffice 2003 blows past the competition, its by far the best, i actually even enjoy the “lazy loading” that it does with the large .doc where it doesn’t load it all at once but opens pretty fast, besides that OpenOffice 3.4 kinda still works best than LibreOffice 3.6.
For Mac your choice is LibreOffice 3.6, it works like a charm, next up would probably be MSOffice 2008 just cause it has good compatibility and kinda treats all files equaly, but overall Mac OSX 10.6 is pretty disappointing for Office Performance with nothing loading faster than 10 seconds.
For Linux (Ubuntu 12.04), apparently LibreOffice 3.5 is freaking king, still OpenOffice 3.4 and LibreOffice 3.6 run pretty good too, they feel native and run almost like MSOffice 2003 on Windows 7, super fast and slick i barely see the annoying splash screen (ie any application that has a splash screen just means its going to be slow)!!!, i also like to point out that I’m using the same computer for Windows 7 and Ubuntu 12.04, so yeah great performance for all.
As a side note, in my office its all Win7 machines, mostly cause some of the software, like accounting software is windows only and there are no alternatives, so using another operating system would be troublesome even if doable (virtual machines and such), but this performance on Linux does give me pause, especially with how Linux nowadays does play fairly well with windows networks and windows computers, and with LibreOffice and OpenOffice seem to fairly stagnated in performance on Windows, going for Linux might just do the trick.

Apache OpenOffice 3.4 Vs LibreOffice 3.5.3

So I’ve been using LibreOffice on multiple computers on the office, as an obvious alternative to Microsoft’s Office, now the reason for moving from OpenOffice to LibreOffice was purely because Oracle is probably the most untrustworthy company in the world (i joke, i joke, but they surely seem a very anti-opensource company), so with the spin-off LibreOffice and especially because they were joining with Go-oo, i thought the move to LibreOffice was the right one!

See my main concerns (and probably like most other users) with Office software are:

  • I need basic Office Functions (Writer/Calc/Presentation);
  • I need compatibility with Microsoft Office documents;
  • I need Performance (Opening fast, closing fast, editing fast, if possible low memory and low cpu)!

What i noticed first with my change to Libreoffice is that it was slightly slower than OpenOffice, i thought it was a bit strange since Go-oo was a bit faster than OpenOffice, still the difference dint seem much at the time and i put if off as the excuse from the LibreOffice camp that the focus right then was on code clean up.

So now that OpenOffice practically died off at the hands of Oracle and was handed down to the Apache foundation to try and become a more open source project again, i kinda would like to give it a go, at least to see how the performance is, so with OpenOffice 3.4 just coming out, lets make a comparison!

Basic Office Functions between OpenOffice 3.4 and LibreOffice 3.5.3

Well there are already a lot, especially on the LibreOffice side of things, but not all are for the better, sure LibreOffice has more tricks and features, but most are to my view (the view of someone that wants a basic office software for a business) mostly irrelevant, also Libreoffice color change is kinda obnoxious, who wants fluorescent green/blue/yellow documents icons? Besides that, i would say in basic office functions OpenOffice and LibreOffice are on par.

Office Compatibility between OpenOffice 3.4 and LibreOffice 3.5.3

Well almost the same, even tough here i kinda have to give a nudge to LibreOffice, since it has way less warnings and quiz options while opening Microsoft Office Documents, the OpenOffice “oh jesus christ i see a macro” warnings are a bit of a overkill and annoying, but yeah they both work pretty good with Microsoft Office documents.

Performance between OpenOffice 3.4 and LibreOffice 3.5.3


I’m using pretty modern computers (multiple core cpus, 4GB ram, fast 7200rpm hard drives), one with Windows XP the other with Windows 7, yes 
I’m  not going to compare on the Mac or Linux cause 
I’m  not using them on the business side, also although this isn’t all that scientific, 
I’m  going to take some precautions, my scheme will be installing/rebooting, running cold/running hot, also 
I’m  not tweaking any of them for performance, this is out of the box performance, on both 
I’m  only installing the writer/spreadsheet/presentation programs, on both 
I’m  disabling quick start.



The small.doc is 40KB, the large.doc is 25MB with plenty of formatting and embedded images and graphs, the small.xls is 45KB and the large.xls is 4MB with 20 sheets lots of calculations and graphs.

Note: I’ve removed the cold start, since they both acted pretty much the same, if starting cold, it adds around 16 seconds whatever the document and whatever the software (that sucks on both software’s). I also removed the Windows XP graphic cause it was kinda the same, although all a bit slower than on Windows 7, but that computer is also a bit slower than the Windows 7.

So as we can see, OpenOffice has better performance once warmed up, especially on the large.doc, the difference in opening is huge! Almost half the time to open, and with smaller files it also consistently outperformed LibreOffice, also OpenOffice was very responsive on the Large.doc, while LibreOffice kept hanging while i was scrolling or editing, also for the same document Libreoffice used 43MB of RAM, while OpenOffice used 35MB of RAM.

So now i’m not sure if i should move all my computers back to OpenOffice or if i should wait for LibreOffice 3.6 in a month’s time, but i do hope that both distributions start focusing on performance, i think if OpenOffice keeps improving its performance like this, that it really doesn’t matter the clean code and all the nice bells and whistles of LibreOffice, most business will make the decision on performance (literally the biggest reason to buy Microsoft Office is performance) to stay with OpenOffice or go back to it, just like me.

Note 1: Seems i should have published the documents i used in this comparison, sorry about that, my fault! but like i said in the comments they were random office documents, i promisse ill make a better comparison when LibreOffice 3.6 comes out!

Note 2: Also the Windows XP computer has Microsoft Office 2003 (the only office i have ever bought) and all of the files i tested open INSTANTLY! and in COLD START! even the huge 25MB file, although it seems in that one it only loads the first 6 pages, but scrolling down it keeps showing the rest pretty quickly and smoothly, soo i would add that in the performance department LibreOffice and OpenOffice have still a long Long LONG way to go, even in 2012 they are no comparison in performance to a 2003 software.

Several Tweaks and Improvements ^_^

S2R > Humm got a new donations page, better contacts and slightly better txt.

Hostcult > Hey hey its this site heheeh, just added some like facebook, twitter and such buttons, for easier promotion and likability, also cleaned up and added a bit to the contacts / about page.

Fiendish > Cleaned the layout, added random quotes, for moar awesomeness ^^.

Neechan > Merged the requests board into the main board, plus some tweaks with performance, should run super smooth now ^-^.

Optimize your WHM Cpanel

This isn’t gonna be a how-to increase the performance of whm/cpanel, there are loads of awesome tutorials online and i’ll link so some of those in the bottom, this is just some of the tips I’ve learned over the years, that can and do, and make a difference on the performance of your vps / vds / dedicated box using WHM Cpanel.

1) Disable Unused Services
WHM is a complete package it takes care of the services, of making and managing the account and updating the server and itself, because of its versatility it has all these services and more that you would want from a hosting server, however all of these services are not required and some of them are serious performance hogs, so these are the ones you should check out and if you dont need, disable:

  • SpamAssassin Server (spamd) – If you dont need anti-spam, nowadays most e-mail software/webmail provide anti-spam protection, so no point running it on your server, unless mail security is essential, also if you need it, you need to configure it properly so at least its not such a big performance hit.
  • Clamav Antivirus – Same thing as SpamAssassin, but for Anti-virus, and well clamav just detects the really blatant virus, so trojans and mallware might get trhough anyways, so you can disable this one, but if you need it its the same thing as SpamAssassin, configure the hell out of it.
  • Cpanel Pro – Added features, but not really needed.
  • Statistics Software – Well with google analytics and other offsite statistics software, you can live with just one stats software and webalizer is probably the lightest, disable the rest.
  • Mailman – Just use a php or offsite maillists systems.
  • Webmail – Unless you are hosting, most people are using pop3/imap or just offsite mail, so choose the most basic like squiremail, disable the rest.
  • Entropy Chat – enable only if you need it.
  • Melange – enable only if you need it.

2) Tweaking Settings

  • Uncheck Conserve Memory at the expense of using more cpu/diskio (however if you need the added memory, check it, but you take a performance hit).
  • Choose the best version for you of Apache, Mysql, FTP, PHP (just choose the one that fits better to your uses), and then tweak it, make some online searches on how to change the apache config’s or php settings (most are available right through WHM).
  • Make sure the default catch-all mail address is set to FAIL, so that it uses as little CPU time/Disk Space as possible.

4) Upgrade / Update
This one is simple… not always having the latest and greatest is the best course of action, but there is a tendency for newer software to have better performance, less bugs and generally more secure, so when in doubt, always update, in this case, its setting up whm to update itself to the CURRENT or STABLE releases and make sure security packages are also on automatic, also from time to time running the easy apache, and the updates on the Software section (Server and System).

5) Keep an Eye on it and Adjust
Since every box is different (although im talking here about LAMP+WHM/CPanel), there are multiple variations of LAMP (using CentOS instead of Debian, or php4 instead of php5), also it depends on the sites/services you are doing with the box, if your sites are dynamic you kinda want to adjust php, if its a file server, you kinda can move to nginx (or another lightweight server, instead of apache), if you have a lot of Mysql work, its another thing, so not all rules or changes will work best, so keeping an eye on the performance of the box is important, not only if the CPU and RAM are good, but also how quick your pages load.



I know there are a lot of more tweaks you can make so check these articles for more in depth tweaking (or just make a search yourself), however just doing the ones i told should keep your box humming away pretty good ^_^

Check …
Optimizing cPanel/WHM
Optimize High-Traffic Servers
Configuring and Optimizing MySQL For WHM Dedicated Server/VPS