Seeing Torgeir’s tweet reminded me that I should write a follow up article about it.
Had fun tweaking performance today. Cut article load by a factor of 5 through bundling and other tricks :-) https://t.co/RWr9AVCUsh— Torgeir Helgevold (@helgevold) May 29, 2016
Starting with John Papa’s Tour of Heroes repo and decided to use it as a baseline. As you can see from the screenshot it takes about
1.09s to load.
Now that we have a baseline we can move on to serving the exact same content up via a node + express server.
Switching to node + express shaved the time down a little bit to
This is due mostly to the fact that live server implements hot-reloading, a fantastic feature for development but it does add a little overhead in terms of assets and speed.
Credit for this part goes to tunniclm.
Now that we switched over to Http2 we can see our final speed of