30.06.2016 Views

Magento Site Performance Optimization

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Starting with the Right Hardware<br />

In the preceding command, your.magento.store.com is the default address of the<br />

store you want to test. We chose to stress the display of all the items belonging to the<br />

living-room category in order to perform a lot of database and PHP treatments.<br />

The following results were not very encouraging:<br />

Concurrency Level: 5<br />

Time taken for tests:<br />

Complete requests: 100<br />

Failed requests: 83<br />

110.396 seconds<br />

(Connect: 0, Receive: 0, Length: 83, Exceptions: 0)<br />

Write errors: 0<br />

Non-2xx responses: 83<br />

Total transferred:<br />

HTML transferred:<br />

Requests per second:<br />

Time per request:<br />

Time per request:<br />

requests)<br />

Transfer rate:<br />

840645 bytes<br />

792932 bytes<br />

0.91 [#/sec] (mean)<br />

5519.809 [ms] (mean)<br />

1103.962 [ms] (mean, across all concurrent<br />

7.44 [Kbytes/sec] receive<br />

As you can see, the time per request is 5519 ms. In other words, we have to wait<br />

almost 6 seconds in order to visualize the living room page.<br />

Downloading the example code<br />

You can download the example code files for all Packt books you have<br />

purchased from your account at http://www.packtpub.com. If you<br />

purchased this book elsewhere, you can visit http://www.packtpub.<br />

com/support and register to have the files e-mailed directly to you. You<br />

can also directly download the code sample from http://mathieunayrolles.com/magento-optimization/.<br />

Evaluating your needs<br />

Before choosing your hardware, you should know how any changes will directly<br />

impact the performance of your website. In the following sections, we will<br />

successively change the available amount of RAM and the number of CPU, and we<br />

will even over-stress our hard drives.<br />

[ 10 ]<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!