Hacker News new | ask | show | jobs
by ne01 4037 days ago
WordPress is slow by design! I have managed to create a blogging engine (in PHP) that it only takes 2ms to create the page dynamically (without caching) from the database + ~20ms for Nginx to serve it.

One might argue that my engine does not have as much features... and you are right.

Incase you are interested: SunSed.com

3 comments

WordPress is rather big, having more than 200K function calls on a typical request to a blog post. However, when using the default Twenty Fifteen theme, the performance is not that bad, as you can see from http://ldr.io/1cbbomp (VPS server with 3CPUs and 4GB of RAM).

I've just checked your blogging engine and it looks very minimalistic. I like it.

Thank you! Yes you are right! WordPress is huge! but not everyone need all the functionality... let's just say 10% of current WordPress users just need a simple blogging platform without all the widgets... then I think 1K function calls should be enough!

Anyway, I love WordPress and do not compare my hubby project with 10 years of 1000+ developers time!

It's a bit like saying "I've done something completely different and it's much faster".

Anyway, sunsed looks cool.

You are right! Thank you for the complement!
You can do faster than that as well if you use C++ - I can render pages dynamically in 0.1 ms or so.
templates are mostly not the problem, even on python, when you use jinja templates getting generated really fast. However the problem mostly comes through the database. A single page view could hit like 10 queries.
Yeah. Avoid the database, just read from RAM :)
That's it the main bottleneck is Database calls!