I have installed WordPress on my local developer's machine. This developer's machine is pretty respectable by today's standards (double digits of RAM in GB, and a great processor), and I don't experience performance when doing web development in other languages. But on a fresh WordPress install, I feel surprised by how slow it is.
If I navigate to the "Hello World!" post that is created by default, on a fresh install, it takes a couple of seconds. Specifically, the browser waits 1.68 seconds until receiving the first byte. This seems to me to very slow for a local installation. Refreshing the page always gives between 1.5s and 2.0s, just for the request to the page, so not including resources like CSS files and Javascript files.
So my question is: how fast would you expect WordPress to be on a fresh installation on your local developer's machine? Do you agree with my intuition that 2 seconds on a fresh install for just the HTML page is too slow?
I have installed WordPress on my local developer's machine. This developer's machine is pretty respectable by today's standards (double digits of RAM in GB, and a great processor), and I don't experience performance when doing web development in other languages. But on a fresh WordPress install, I feel surprised by how slow it is.
If I navigate to the "Hello World!" post that is created by default, on a fresh install, it takes a couple of seconds. Specifically, the browser waits 1.68 seconds until receiving the first byte. This seems to me to very slow for a local installation. Refreshing the page always gives between 1.5s and 2.0s, just for the request to the page, so not including resources like CSS files and Javascript files.
So my question is: how fast would you expect WordPress to be on a fresh installation on your local developer's machine? Do you agree with my intuition that 2 seconds on a fresh install for just the HTML page is too slow?
You can expect a fresh install of WordPress on your local machine to be fast!
The HTML of a page should get downloaded within 0.1s (on a local machine)!
It turns out that I had an issue with the way my server and its configuration was set up, and the issue was not with WordPress at all. I'm posting the answer that I wish I had, because in my experience, a lot of WordPress sites are slow, and because of that, (and out of laziness TBH), I made the mistaken assumption that I just had to put up with a slow fresh install of WordPress on my local machine.
You shouldn't use a local host setup to test the speed of your site. Beyond the obvious hardware of your machine there is a ton of other stuff that could effect speed. Not to mention all the settings and configs for your local server it's self. Hosting companies have experts that setup and optimize their servers, some even optimize specifically for WordPress.
Its fair better and much more accurate to test the actual speed of your site remotely, on the server where it's going to live.