Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » how to display benchmark/performance figures?

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

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

Page: 1
Go to End
Author Topic: 3592 Views
  • olafmol
    Avatar
    Community Member
    10 Posts

    how to display benchmark/performance figures? Link to this post

    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

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: how to display benchmark/performance figures? Link to this post

    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.

  • olafmol
    Avatar
    Community Member
    10 Posts

    Re: how to display benchmark/performance figures? Link to this post

    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

    3592 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.