ElkArte Community

General => Chit Chat => Topic started by: ahrasis on February 09, 2017, 03:17:03 am

Title: Test Web Sites
Post by: ahrasis on February 09, 2017, 03:17:03 am
If you are bored and got nothing to do, test your sites or friends' sites or any sites you want here:

1. https://gtmetrix.com

2. http://www.webpagetest.org

Though web test like this may not be any use to you, it could be fun, especially if you make a screenshot and paste it as a reply in here.  :D
Title: Re: Test Web Sites
Post by: Jorin on February 09, 2017, 08:36:30 am
Hm... Is this good?
Title: Re: Test Web Sites
Post by: ahrasis on February 09, 2017, 09:24:06 am
I believe it is good except for the one you got F. You can ignore the one with X. You can tail them down to its details by clicking the F.

I think you can also get rid of that leverage browsing caching failure if you set proper expire in apache or nginx directive. Just google and you will find out about it.  ;)
Title: Re: Test Web Sites
Post by: ahrasis on February 13, 2017, 06:36:55 am
https://gtmetrix.com/reports/elkarte.sch.my/b6Ou2eUQ
http://www.webpagetest.org/result/170213_GV_8FE/

https://gtmetrix.com/reports/www.elkarte.net/SQArWnQ5
http://www.webpagetest.org/result/170213_J5_8F1/
Title: Re: Test Web Sites
Post by: Frenzie on February 13, 2017, 06:31:56 pm
Google Pagespeed is another similar website.

https://developers.google.com/speed/pagespeed/insights/

Yes.  You can improve that by, for instance on Apache, adding something like this:

Code: [Select]
# BEGIN Expire headers
<ifModule mod_expires.c>
# Add correct content-type for fonts
# AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg

# Compress compressible fonts
#  AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml

ExpiresActive on

# Add a far future Expires header for fonts
# ExpiresByType application/vnd.ms-fontobject "access plus 2592000 seconds"
ExpiresByType application/x-font-ttf "access plus 2592000 seconds"
ExpiresByType application/x-font-opentype "access plus 2592000 seconds"
ExpiresByType application/x-font-woff "access plus 2592000 seconds"
ExpiresByType image/svg+xml "access plus 2592000 seconds"

ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 648000 seconds"
ExpiresByType application/javascript "access plus 648000 seconds"
ExpiresByType application/x-javascript "access plus 648000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
# END Expire headers

I think I may have gotten the boilerplate for that from Google (as in Google's help I just linked to or something much like it, not by searching on Google :P)

Edit: forgot to add this link https://developers.google.com/speed/docs/insights/LeverageBrowserCaching
Title: Re: Test Web Sites
Post by: ahrasis on February 13, 2017, 11:30:04 pm
Google pagespeed is even trickier than others.

For nginx leverage browsing caching, you can use this in your vhost:
Code: [Select]
        # serve static files directly
        location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
                access_log        off;
                expires 365d;
        }

        location ~*  \.(pdf)$ {
                expires 30d;
        }

For those who are using ISPConfig and nginx, this can be set in nginx_vhost.conf.master in conf-custom folder, so that all sites will automatically use the same.
Title: Re: Test Web Sites
Post by: ahrasis on May 24, 2017, 04:20:00 am
Bored. Redo the tests again while figuring how to update my android app.

http://www.webpagetest.org/result/170524_ZJ_4JN/

Can't get GTmetrix to work but check SSL Lab though.

https://dev.ssllabs.com/ssltest/analyze.html?d=elkarte.sch.my
Title: Re: Test Web Sites
Post by: ahrasis on June 22, 2017, 04:12:49 am
Testing EA RC1.1 for today and the result is great. I think it loads faster than 1.0.

https://gtmetrix.com/reports/elkarte11.sch.my/E3kczEnh
https://tools.pingdom.com/#!/erYElZ/https://elkarte11.sch.my
http://www.webpagetest.org/result/170622_KG_6H5/
Title: Re: Test Web Sites
Post by: radu81 on June 22, 2017, 08:54:45 am
I get a C score on GTmetrics & elkarte 1.0
https://gtmetrix.com/reports/www.skodaclub.it/5UI21Buw
if I check the home page the score is lower since I use scaled images

It says gzip compression is not enabled, but I'm pretty sure it is enabled
https://checkgzipcompression.com/?url=https%3A%2F%2Fwww.skodaclub.it%2Findex.php%3Faction%3Dforum

On Pingdom I get a B score https://tools.pingdom.com/#!/bj4XHC/https://www.skodaclub.it/index.php?action=forum
Title: Re: Test Web Sites
Post by: ahrasis on June 22, 2017, 10:53:19 am
Based on the above, the only thing that I can see my server is lacking is the load time for its sites. I am not truly sure what affecting this but my guess is because I am using HDD instead of SSD.

I have disabled swap and remove its directory on both of my HDD and install preload to ensure all frequently used software will be using my 8gb ram instead but still I cannot get a faster load time.

So unless and until I have an SSD to be used as my server main drive, I guess I will have to be satisfied of what the server is offering, for now.
Title: Re: Test Web Sites
Post by: radu81 on June 22, 2017, 11:11:52 am
Yep the load time is similar to mine, but my page size and the requests are triple
Fully Loaded Time 3.1s Fully Loaded Time 3.7s
Total Page Size 148KB Total Page Size  692KB
Requests 9 Requests 37
I use an ssd drive, with 2GB Ram from Linode
Title: Re: Test Web Sites
Post by: Frenzie on June 22, 2017, 04:02:00 pm
Quote from: ahrasis  -  Based on the above, the only thing that I can see my server is lacking is the load time for its sites. I am not truly sure what affecting this but my guess is because I am using HDD instead of SSD.

I have disabled swap and remove its directory on both of my HDD and install preload to ensure all frequently used software will be using my 8gb ram instead but still I cannot get a faster load time.

So unless and until I have an SSD to be used as my server main drive, I guess I will have to be satisfied of what the server is offering, for now.
Keep in mind that, assuming your server is located in Asia, testing against an American or European server might easily add half a second or more of extra "loading" time. Pingdom gives my site 360 ms from Sweden and 1.17 s from Dallas. I wouldn't be surprised if it'd go over 2 s from Asia with no change in server performance whatsoever.
Title: Re: Test Web Sites
Post by: ahrasis on June 23, 2017, 08:13:57 am
That's a good observance @Frenzie. I didn't think of that when I wrote earlier.

Quote from: radu81  -  Yep the load time is similar to mine, but my page size and the requests are triple
Fully Loaded Time 3.1s Fully Loaded Time 3.7s
Total Page Size 148KB Total Page Size  692KB
Requests 9 Requests 37
I use an ssd drive, with 2GB Ram from Linode
Anyway, I do think the load time should be faster if we are using SSD, but I am not so sure how much more faster.

By the way, what is your processor @radu81? And are using your server for just one site?

And as a further todo for this, I will be checking how ISPConfig is managing this as well. It could have something to do with it or its settings for the site, though I doubt it.
Title: Re: Test Web Sites
Post by: radu81 on June 23, 2017, 09:44:10 am
I usually do the GTmetrics tests using a server in Europe since my vps is located in London. In the link posted below I forgot to change the server to Europe

Quote from: ahrasis  -  By the way, what is your processor @radu81? And are using your server for just one site?
model name      : Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
cpu MHz        : 2499.996
cache size      : 4096 KB
I am hosting more than one website on this vps and  usually it uses 0,9 - 1,1 GB of 2 GB RAM, CPU used is about 10% - 25%
Title: Re: Test Web Sites
Post by: emanuele on June 23, 2017, 01:46:58 pm
I always feel these tools are always to take with a grain of salt:
https://gtmetrix.com/reports/www.elkarte.net/9jVbbnZ4
Yes, images are not scaled, sure.
But we use avatars of different sizes (at least two, likely 3) in different pages, what would be the total size of all the scaled avatars? Of course it would be the size of the unscaled avatar (topic display) รจ the size of the scaled avatar.
In terms of caching, it is much more efficient to just serve 1 size of avatars and let the browser deal with the caching and re-use.

Also, the "optimize images": Optimize the following images to reduce their size by 11.3KiB (17% reduction).
Considering the page is 284kb, 11 is about 5%, not 17%. And... well, okay, really, 11 kb makes any difference nowadays?  When the average website has pages on the realm of 3MBs?

And for fun:
https://gtmetrix.com/reports/www.nytimes.com/2Es85Dwm
https://gtmetrix.com/reports/xenforo.com/KAjAlhF9
https://gtmetrix.com/reports/www.vbulletin.com/3B5w5zWO
https://gtmetrix.com/reports/invisioncommunity.com/1r7CP8MO

:D
Title: Re: Test Web Sites
Post by: radu81 on June 23, 2017, 02:51:05 pm
Quote from: emanuele  -  I always feel these tools are always to take with a grain of salt
Agree  8)

Google also has it's own tool (https://developers.google.com/speed/pagespeed/insights/?hl=it) for sped testing and the funny part is that the score is decreased a lot by their own JS files from services like Google Adsense and Analytics  :D

For me a website must load fast for users, not for automatic tools
Title: Re: Test Web Sites
Post by: ahrasis on June 23, 2017, 03:46:57 pm
Actually, I never trully care that much about any of these but normally when I am free I like to do all these "time wasting" things, again and again. Bad habit I guess. :D
Title: Re: Test Web Sites
Post by: ahrasis on December 07, 2017, 03:21:45 am
Tests on elkarte11 has resulted a good result as follows:

1. At https://elkarte11.sch.my[1]:
- https://gtmetrix.com/reports/elkarte11.sch.my/VgiUB9cl
- https://tools.pingdom.com/#!/dyXYqh/https://elkarte11.sch.my
- http://www.webpagetest.org/result/171207_VW_98049f447bd553ae401effcc286bd704/
- https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Felkarte11.sch.my&tab=desktop

2. At yoursite:

You can do it yourself!!!
I follow a guide for gzip compression in here for this result:-
https://www.digitalocean.com/community/tutorials/how-to-add-the-gzip-module-to-nginx-on-ubuntu-16-04
Title: Re: Test Web Sites
Post by: Spuds on December 07, 2017, 04:37:15 pm
Just to note,  since you have enabled gzip with nginx, you should be able to turn off  ElkArte's  compressed output buffer since Nginx will take care of the text/html for you (and more efficiently)
Title: Re: Test Web Sites
Post by: ahrasis on December 08, 2017, 08:04:25 am
Thanks for the note @Spuds.
Title: Re: Test Web Sites
Post by: ahrasis on May 12, 2018, 05:14:56 am
Testing https://elkarte.sch.my on Ubuntu 18.04 Nginx Web Server:
1. https://gtmetrix.com/reports/elkarte.sch.my/Y9GvI0wx
2. http://www.webpagetest.org/result/180512_9X_2f1f9f6e0aaf1f3cd921d66428411c02/
3. https://tools.pingdom.com/#!/cZejF7/https://elkarte.sch.my

So far all are good with using only google cdn for jquery except my nginx cookieless setting on https://cdn.sch.my which is clearly not working. I will have to figure out why it is not working.

Further, I will also have to try and see how to remove query strings from static resources and replace it with others. Hopefully, it can become ElkArte new features? :D
Title: Re: Test Web Sites
Post by: ahrasis on May 13, 2018, 11:34:19 am
Quote...most people can't use a subdomain of their main domain to do this ... because they serve cookies that are valid across the entire second-level domain.
Reading
the above discussion at ServerFault (https://serverfault.com/questions/78227/what-is-a-cookie-free-domain) now I know why my cookie-free domain at https://cdn.sch.my is not working. To make it works I changed it to other domain instead.

As for the query strings, I disabled the default code in SiteCombiner.class.php at line 398-399[1]by commenting them out:
Code: [Select]
		//if (!empty($this->_stales))
//$this->_archive_stale = '?x' . hash('crc32b', implode(' ', $this->_stales));

The score now increases and at https://tools.pingdom.com/#!/cSKvto/https://elkarte.sch.my it has achieved 100%  :D

For now I think there is no need for me to use any CDN, as my DNS server is CloudFlare thus it should serve any users quite fine wherever they are from.


Though there can be a better way in doing this but I am too lazy now. :D
Title: Re: Test Web Sites
Post by: ahrasis on October 31, 2018, 11:41:42 am
I thought my above trick no longer works but a test again today after update to 1.1.5 resulted in 100% again?

https://tools.pingdom.com/#59b26d4848c00000

Results from others are also good:
1. http://www.webpagetest.org/result/181031_MS_850cf69f1ae230371d59636b66ce7ae1/
2. https://gtmetrix.com/reports/elkarte.sch.my/EYy9QyvA
Title: Re: Test Web Sites
Post by: radu81 on October 31, 2018, 01:17:41 pm
My forum needs some optimization 
https://tools.pingdom.com/#59b28306e3000000
Title: Re: Test Web Sites
Post by: Jason on April 24, 2019, 06:46:20 pm
My test results:

https://gtmetrix.com/reports/indianforum.org/K8OVZs9O

https://www.webpagetest.org/result/190424_SE_4a87b4ececb2e7ab9d2ad205ea0c1443/

Pingdom:
Performance grade A 92
Page size 280.7 KB
Load time 2.20 s
Requests 11
Title: Re: Test Web Sites
Post by: ahrasis on May 25, 2021, 05:04:16 pm
These reported htts://elkarte.sch.my (running v1.1.7) as good:
1. https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Felkarte.sch.my%2F&tab=desktop
2. https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Felkarte.sch.my%2F&tab=mobile
3. https://tools.pingdom.com/#5e69015c7d400000
4. https://www.webpagetest.org/result/210525_BiDcSE_8a49db92a1b3c9c3edf27473324c0d68/

But these don't:
https://gtmetrix.com/reports/elkarte.sch.my/JIh9cz4H/

GtMetrix report is rather strange to me.
Title: Re: Test Web Sites
Post by: radu81 on May 25, 2021, 07:42:00 pm
if could be useful this is what I get in GTmetrix https://gtmetrix.com/reports/www.skodaclub.it/Rlpuhu2b/
the results are probably better on the index of the forum (not the homepage generated by Simple Portal).
Title: Re: Test Web Sites
Post by: Spuds on May 26, 2021, 03:58:14 am
It might be a location based issue.

The test server appears to be in Canada.  I ran it on one of my sites and got A - Performance 98% Structure 95% and that was the main page with SP. 

When I looked at your report it seemed to focus on the delivery time from the CDN, which likely means there is no CDN server "close" to the CA server doing the testing.
Title: Re: Test Web Sites
Post by: ahrasis on May 26, 2021, 07:24:04 am
You are right @Spuds. I logged in and test from Hong Kong server and the result is very good.

https://gtmetrix.com/reports/elkarte.sch.my/sKzrPfLW/
Title: Re: Test Web Sites
Post by: radu81 on January 13, 2022, 01:21:32 pm
mention @Spuds 
Title: Re: Test Web Sites
Post by: Spuds on January 13, 2022, 02:58:47 pm
back at you @radu81
Title: Re: Test Web Sites
Post by: radu81 on January 14, 2022, 08:55:25 am
test mention @spuds
Title: Re: Test Web Sites
Post by: radu81 on January 17, 2022, 08:52:44 am
just a mention test @Spuds 
Title: Re: Test Web Sites
Post by: Spuds on January 17, 2022, 05:11:40 pm
@radu81 I got this in my notifications ....
Title: Re: Test Web Sites
Post by: radu81 on January 17, 2022, 05:13:00 pm
Great, and I received correctly the notification:thumbsup: