I've setup WordPress inside an EC2 Instance, and when checking loading times I noticed that the build page time is over 0.5s which makes the response time over 0.6s.
I've checked and DB queries are only 0.025s, so there doesn't seem to be an issue with the DB.
I've deployed more complex systems in the same EC2 instances, for example NextJS backend which sends requests to Django backend which sends queries to database, then it responds back to NextJS where the a very long page is built and then sent to the client and the response time for all this is under 0.2s.
I'm new to WP so I'm not really sure why WordPress would take that long to build a simple page with almost no content. I even changed my instance type to be the biggest available which costs $216 per month and the build time still was about the same 0.5s
Any idea what it could be? Or maybe this is just how WordPress works?
This is a fresh installation without any plugins or anything.
UPDATE: I've done an automatic deployment with AWS Lightsail with the same specs and build time is 0.09s. Seems like my manual deployment is broken somehow.
By build page time do you mean TTFB?