Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

how to display benchmark/performance figures?


Reply


3 Posts   3747 Views

Avatar
olafmol

Community Member, 10 Posts

7 September 2008 at 10:32pm

Hello,

is it possible in SS to display the number of queries, the time it took to parse and render the template/page, and the total rendering time? In MODx there are dedicated variables for this you can display in each page, which can help with tuning the performance of a site.

Olaf

Avatar
Sam

Administrator, 685 Posts

11 September 2008 at 10:34am

You can get some information by putting ?debug_profile=1 on the end of the URL. It would be interesting to see some screenshots / examples of how ModXCMS does it, though.

Avatar
olafmol

Community Member, 10 Posts

11 September 2008 at 6:46pm

from the MODx manual: (http://modxcms.com/modx-tags.html)

Timing

There are several timing tags in MODx:

* [^qt^] - Query Time - Shows how long MODx took talking to the database
* [^q^] - Query Count -Shows how many database queries MODx made
* [^p^] - Parse Time - Shows how long MODx took to parse the page
* [^t^] - Total Time - Shows the total time taken to parse/ render the page
* [^s^] - Source - Shows the source of page, whether is database or cache.

For example, for this page, MySQL queries took 0.0000 seconds for 0 queries(s), document parsing took 0.2643 seconds, for a total time of 0.2643 seconds, and retrieved from cache.

---

You can put these in a template and then it will show something like this:

* 0.0007 s - Query Time - Shows how long MODx took talking to the database
* 1 - Query Count -Shows how many database queries MODx made
* 0.0140 s - Parse Time - Shows how long MODx took to parse the page
* 0.0147 s - Total Time - Shows the total time taken to parse/ render the page
* cache - Source - Shows the source of page, whether is database or cache.

cheers, Olaf