Sometimes tools are that awesome that you just want to spread the word. I guess I should do that more often. One fantastic tool is sitespeed.io. Sitespeed.io is a set of open source tools that will help you to analyze your website and gives you helpful advices to make your website faster.
You can install sitespeed.io via npm, but it is also shipped as docker container. I will try that docker container with my own blog.
We can pull the docker container with the following command.
docker pull sitespeedio/sitespeed.io
Using default tag: latest
latest: Pulling from sitespeedio/sitespeed.io
6bbedd9b76a4: Pull complete
fc19d60a83f1: Pull complete
de413bb911fd: Pull complete
2879a7ad3144: Pull complete
668604fde02e: Pull complete
4bc52c2a6979: Pull complete
f35c37874afa: Pull complete
a80ffcc161e6: Pull complete
5983298ea57d: Pull complete
f9984da1147d: Pull complete
fcc9456c65f3: Pull complete
af8c9748b2f1: Pull complete
767ff2d389a1: Pull complete
d61d1e7f5cac: Pull complete
2302b4f0a43c: Pull complete
c3aa460fde0c: Pull complete
a974b66104b1: Pull complete
9c04650dded8: Pull complete
Digest: sha256:9a4de44562d3b35b9901f06a4397a7f468c714ce0581a00687923e8565c87d97
Status: Downloaded newer image for sitespeedio/sitespeed.io:latest
We can run the docker container with the following command. The following example runs with Firefox, but Chrome is also possible.
sitespeedio/sitespeed.io:4.0.0
for example.docker run --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io https://gordonlesti.com/ -b firefox
Google Chrome 54.0.2840.71
Mozilla Firefox 49.0.2
[2016-11-25 08:36:48] Versions OS: linux 3.16.0-4-amd64 nodejs: v6.9.1 sitespeed.io: 4.0.7 browsertime: 1.0.0-beta.11 coach: 0.29.0
[2016-11-25 08:36:49] Starting firefox for analysing https://gordonlesti.com/ 3 time(s)
[2016-11-25 08:36:49] Testing url https://gordonlesti.com/ run 1
[2016-11-25 08:36:56] Testing url https://gordonlesti.com/ run 2
[2016-11-25 08:37:03] Testing url https://gordonlesti.com/ run 3
[2016-11-25 08:37:12] 6 requests, 359.33 kb, DOMContentLoaded: 1.51s (±353.45ms), Load: 1.62s (±318.09ms), rumSpeedIndex: 728 (±54.10) (3 runs)
[2016-11-25 08:37:12] Render HTML for 1 page(s)
[2016-11-25 08:37:13] HTML stored in /sitespeed.io/sitespeed-result/gordonlesti.com/2016-11-25-08-36-48
[2016-11-25 08:37:13] Finished analysing https://gordonlesti.com/
The results can be found in the directory
sitespeed-result/gordonlesti.com/2016-11-25-08-36-48/
, cause I have started my tests at
2016-11-25 08:36:48. Here for example the overview for my blog. I guess I have to improve a few things, but
that should be no problem with the helpful advices of sitespeed.io.