CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Speed benchmark
Pages: [1]

Author Topic: Speed benchmark  (Read 1374 times)

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Speed benchmark
May 24, 2011, 04:53:04 am
Hi,

I'm setting up CCRM at the moment and the end users are beginning to pilot the system.

There are circa 4,000 contacts. I'm using a premium hosting company.

I was wondering what sort of page load speeds I should expect for normal viewing and editing of contacts and normal search functions etc.?

They are saying it is a little slow but I have no way of knowing what should be normal. I think it isn't too bad at all and I am checking their connections/networks compared to mine to rule that out.

I know this is always hard as users want it to load onto the browser as soon as they click the button and this is unrealistic but I need to know the general expectation before trying to optimise and spend time/money on things if actually it is doing okay.

I've got some output from Joomla debug with load times:

Application afterLoad: 0.001 seconds, 0.53 MB
Application afterInitialise: 0.043 seconds, 4.92 MB
Application afterRoute: 0.043 seconds, 4.92 MB
Application afterDispatch: 0.684 seconds, 36.54 MB
Application afterRender: 0.724 seconds, 39.38 MB


Are these figures to be expected or should they be lower (this was for a contact edit)

Any thoughts and experiences welcome.

Cheers,

Dave

PS - I also had a very interesting conversation with the hosters where they said moving to an MVS wouldn't give any more memory or CPU performance boosts, I'm left wondering what I can do.

Although, it may be an education exercise about using online applications as opposed to their experience of using local apps?! :-)

malks

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
  • CiviCRM version: 3.4.x 4.x
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Re: Speed benchmark
May 29, 2011, 08:06:54 pm
Hi Dave,

I'm going through the same sort of process as we speak and a bit of learning as I go.  My contact database seems to be in the same order of magnitude as yours although it is on Drupal.

Mine is on Drupal though so the times you report don't really mean all that much to me.  How fast are the developer tools in Chrome or Firebug in Firefox reporting that the pages load?  I am starting to use Apache Benchmark too to get some numbers, but I've not sorted out how to test anything useful as it requires a logon.  From the browser I'm getting about 2s page load times which is roughly what the demo site shows.  Users are based in Australia and the host is in the US (Hostgator) so contemplating moving the host to an AU hosting based on tracert reports.

I found the single biggest performance improvement was enabling mod_deflate on my apache server, but have seen some improvements with tuning mysql as well, but it's all a bit hit and miss for me at the moment.

Malks.

malks

  • I post occasionally
  • **
  • Posts: 81
  • Karma: 7
  • CiviCRM version: 3.4.x 4.x
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Re: Speed benchmark
June 01, 2011, 06:59:17 am
Just to add to this, I've only just discovered Hammerhead (http://stevesouders.com/hammerhead/) which does something similar to the Net tab of Firebug but will run the test multiple times with and without the cache primed which is kinda cool.  And exports the results to save the benchmark.

Malks.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Speed benchmark
June 01, 2011, 07:16:06 am
Hi,

Interesting discussion.

First is to have real mesures. pagespeed yslow and the net panel on firebug allow to have real data (eg it took 7.48 seconds for page X, way more useful than "it's kinda slow").

In my experience (we spent a lot of time tuning): have a php accelerator, group js & css (on drupal), don't load a lot of modules, avoid acl, compress what you can, be sure to add an expire on all what's static, tune mysql, use lighttpd/ningx instead of apache (or as a front-end).


Otherwise, the biggest issue for speed is the number of requests. Some features (eg dashboard, editing a contact) do way more ajax requests than needed, and it's slowing a lot civicrm (we know how to fix but don't have the time/money).

And benchmark. Compare with demo.civicrm.org (sane configuration, without going all crazy on the tuning) from the same browser for the same task. If it's a difference for all pages, likely that's a network/server configuration issue. If it's only for some pages, might be that civicrm needs some mysql tuning (so it works as fast on 4k than on 102 contacts). Or at least, you know where to look first and what's likely to make a big difference.


X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Speed benchmark
June 01, 2011, 12:21:56 pm
Disclaimer: I run a hosting company, geared specifically for CiviCRM.

Quote from: davesage on May 24, 2011, 04:53:04 am
I'm using a premium hosting company.

Not sure what that means, but I have multiple independent reports of "major" hosting companies underperforming on CiviCRM. :(

Quote from: davesage on May 24, 2011, 04:53:04 am
I was wondering what sort of page load speeds I should expect for normal viewing and editing of contacts and normal search functions etc.?

Of course this depends on the internet connection of the end user, but presuming that he has a reasonable connection to the host machine, the limiting factor will either be the connectivity of the host itself or, most likely, the processing time of the pages on the host machine.

Quote from: davesage on May 24, 2011, 04:53:04 am
They are saying it is a little slow but I have no way of knowing what should be normal. I think it isn't too bad at all and I am checking their connections/networks compared to mine to rule that out.

I am not familiar with Joomla debug so I can't comment on your particular results, but the only way to know what is "normal" would be to compare speeds on independent host machines and see.

Quote from: davesage on May 24, 2011, 04:53:04 am
PS - I also had a very interesting conversation with the hosters where they said moving to an MVS wouldn't give any more memory or CPU performance boosts, I'm left wondering what I can do.

I am guessing you are on shared hosting. If your host says that an MVS has the same RAM and CPU performance as shared hosting, then I would consider a new host. Generally speaking, one takes a VPS or MVS in order to get better performance--this is one of the chief reasons anyhow. This is my experience--others may have different responses.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Speed benchmark
June 02, 2011, 01:35:05 am
Hi,

Thanks for all the replies - I need to respond more fully when I have more time.

I am already using firebug to try and get some more hard and fast stats thanks for the pointer to 'net panel' this was switched off and I was looking for this very thing. I compared Joomla stats and they are similar in both locations. I'll try and post some net panel stats.

Certainly will compare to the demo site - dope - didn't think of that one.

Hershel - would be interesting to see your independant reports showing underperformance? Can you PM me?

I'm with Rochen who seem to be well regarded for Joomla hosting - I think that is what I meant by premium hosting.

My comment about normal was to try to get people to share their experiences to do just as you commented to compare speeds across different machines.

Could we set a few benchmark processes to do (open dashboard, edit contact, run search x) and a standard monitoring tool (net panel) and then share results so we can build up what might be normal?

The general comment about the MVS was that I am on a shared host where I have use of up to 8 CPUs (fair use of 2% CPU time in 24hrs) and plenty of RAM. I know the server isn't battered by watching WHM server load. They said that if I moved to an MVS (there are lots of benefits obviously in terms of security, isolation, dedicated resources) but I would only get dedicated 1 CPU equivalent. Thererfore not necessarily a performance boost. Any comments?

I was in your understanding about better performance on an MVS but I can also understand what the guy is saying. If the shared server was running at 7 CPU constantly then my CPU usage may be restricted but seeing as it running down at the 2 CPU level there is plenty of head room for civi to use more CPU if needed and they can't see how they can activily throttle because there usage policy is on a 24 hr period.

Your thoughts would be appreciated.

Cheers,

Dave

PS - potetially dumb question coming - if the 2 locations are getting similar network bandwidth and serving the same pages from the same server with different speed results then can there be sometihng to do with the local machine spec? I thought that seeing as this runs in a browser this wouldn't be the limiting factor but does ajax and other scripts take up local processing performance, IE if my machine is grunty and theirs is older will this have a noticable impact?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Speed benchmark
June 02, 2011, 03:22:57 am
Quote from: davesage on June 02, 2011, 01:35:05 am
I thought that seeing as this runs in a browser this wouldn't be the limiting factor but does ajax and other scripts take up local processing performance, IE if my machine is grunty and theirs is older will this have a noticable impact?

It could on some CiviCRM pages where there are Ajax calls made to load secondary elements. It's hard to say how much of an impact. Again, the only scientific way to know would be to test. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Speed benchmark

This forum was archived on 2017-11-26.