Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi!

I'm really into some heavy-duty websites. CouchCMS is pretty flexible and many times there are more than one way to program a piece of code. Writing high-load code means choosing one way over the other. Average page generation time is about 1.2-1.4 sec in my local environment, which can be more or less, depends on code decisions.
<!-- Page generated by CouchCMS - Simple Open-Source Content Management -->
<!-- in: 1.238 sec -->
<!-- Queries: 40 -->

<!-- in: 1.725 sec -->
<!-- Queries: 336 -->

Here I welcome to discuss ways of measurement and specific code patterns that help.

For example, which one can be slower/faster -
Code: Select all
<cms:get_custom_field 'image' masterpage='somepage.php' />

Code: Select all
<cms:pages masterpage='somepage.php' limit='1' >
   <cms:show image />
</cms:pages>


P.S. PHP 5.4, MSQL 5.5. I read php7 is much faster.
I wonder, why is the difference between my local machine and hosting server.
The above results are on my local comp.
The following are on server:
<!-- in: 0.227 sec -->
<!-- Queries: 370 -->

Pretty fast, right?
2 posts Page 1 of 1