Current time: 12-15-2017, 06:31 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Long time to load - problem with TTFB
10-19-2017, 04:38 PM
Post: #1
Long time to load - problem with TTFB
Hi, I'm looking for help.
Here is test result: http://www.webpagetest.org/result/171019...9d7a6d06b/

TTFB:1.450s
For now I have made opt. for my apache server and still the same. Apache 2.4 , PHP-FPM 5.6, MariaDB 10.01, dedicated server. In my opinion server is good but code not and this generate long time.

I have second website at the same server (Wordpress) and there load time is good. Results: http://www.webpagetest.org/result/171019...89f8fe5a1/

TTFB:0.185s

some tips? Thanks!
Find all posts by this user
Quote this message in a reply
10-22-2017, 01:09 PM
Post: #2
RE: Long time to load - problem with TTFB
For a WordPress site there are several things that could be going on. Two of the most common things that I see come are:

- theme or plugin making calls out to 3rd party services at the PHP level
- theme or plugin making a large amount ( or a few slow ) database queries.

Since you mentioned using PHP 5.6, I'd recommend trying out PHP 7. It is significantly faster than PHP 5.X. Before upgrading the live site, test out PHP 7 in a dev environment, to make sure there are no compatibility issues.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-23-2017, 11:55 PM
Post: #3
RE: Long time to load - problem with TTFB
Thanks for reply, but the first site with long TTFB isn't a WP
Find all posts by this user
Quote this message in a reply
10-24-2017, 12:40 AM
Post: #4
RE: Long time to load - problem with TTFB
Sorry, I read that as second WordPress site.

The principle is still the same though. Review the code flow for loading the front of the site for things that could be very expensive. Remote calls to other services, slow database calls, anything that involves a lot of work.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-24-2017, 08:52 PM
Post: #5
RE: Long time to load - problem with TTFB
Joseph thanks for tips! Have a nice day!
Find all posts by this user
Quote this message in a reply
10-25-2017, 01:28 AM
Post: #6
RE: Long time to load - problem with TTFB
Hi Mattpl - Something else to consider is the location of your server in regards to the location you're testing it from. For example, if your servers are in Europe but you're testing from California that would explain it.

Best to test from where most of your customers are located. And if you want a worldwide presence then there are DNS and CDN optimizations you can do for that.

Is the TTFB consistently slow across multiple regions?
Find all posts by this user
Quote this message in a reply
10-27-2017, 05:25 PM (This post was last modified: 10-27-2017 08:09 PM by Mattpl.)
Post: #7
RE: Long time to load - problem with TTFB
Hi thanks for reply! I'm testing it from Warsaw and Europe ex. Stockholm.
For now I have change php 5.6 to php 7
Remove some Requests, split css&js and min.

Here another test: https://www.webpagetest.org/result/17102...e745d076e/

First byte from test 1: 1.450s
First byte from test 2: 1.081s

Using pingdoom tool to test from Stockohlm, time to load website is 1.5s. When I'm using webpagtest to check time for https://szukampracy.pl (loc. Warsaw) I have full load time ~3.7s. Why is this difference? Server location is near Warsaw
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)