Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reporting from a budget Android Tablet with Firefox, the response times aren't exactly instantaneous but aren't any different than running full LAMP on a reasonable cloud instance or VPS which is surprising to say the least.

Also imagine the software layers at play here. Whole PHP Interpreter plus whole thousands of lines from WordPress codebase plus SQLite.

Amazing when that's all so much totally useable.



I've always found WordPress performance doesn't change much on lower vs higher end hardware. It seems to be limited by itself.


Absolutely. The other day, I took my slow Wordpress server hosted at Vultr on bare metal (£200/pm) and put it on a server at £500 per month and even after doing all the performance tuning I could with MySQL and PHP I couldn’t notice a difference in speed when I was on the back-end where Cloudflare wasn’t caching it.

I then tested on a lower performance server which costs £80 per month at Vultr and again couldn’t detect any difference when in the back-end.

No matter what performance tuning I done, I couldn’t make it work faster for us. But at least I am on an £80 server instead of a £500 server I guess.


Just come to WP.com and we'll run it super-fast, auto-updated, and secure for $25/mo.


I don’t work for Automattic but after spending years trying to “save money” on wordpress hosting I agree just spend the extra cash for a proper managed soloution. Life is too short to spend optimizing page load for your marketing site when its already a solved problem


There is a worry that I have about switching to a company like yours…

What really happens if you decided you didn’t like the products a website sold?

…Would you give them the time to move and take their backups with then or would you immediately hit the delete button on their data?

These are the reasons we switched to self-hosted Wordpress in the beginning. You don’t need to be on HN for long each day to see the same stories being told continuously about how the big guys treat the wee people.


Does wordpress.com used a forked version? Last time I remember that the custom themes were limited for the hosted solution. Maybe this was for performance reasons?


It's not a fork, is WordPress running on the best infrastructure possible: http://wordpress.com/hosting


On the business plan (25/mo) you can run any plugin or theme, or custom code. You also have full SSH/SFTP and wp-cli access.


That plan actually looks really reasonable. I'm pretty sure when I last looked at it many years ago that stuff wasn't possible.

Thanks for WordPress - it's great. I think I first started 'using' it around 2006/2007ish.


Can it run custom plugins?


Yes. You can deploy your custom plugins and themes.


I've got a client using LearnDash, BuddyBoss, WPML, ACF and Woo for their subscription platform. It's dog-slow on the uncached pages, even on a very beefy server with only 5 concurrent users, choking the database apparently. Serving only 2 countries so don't need a CDN per se. (Why) Would this be faster on wp.com?


You should certainly give it a shot.


I just noticed WP.com Business tier exists recently. It’s a no-brain, indeed. On Thursday I signed with you guys and planning to move my site today. (Wish me luck!) Moving will save me ~90% of what I was paying for a managed VPS.


Didn’t know you owned that domain. How/when did you get it?


It's Matt. Automattic CEO.


I know. Still curious about the 2-letter .com though


Domains are my vice. Also have w.org. Ma.tt. I would rather have a cool IP address (like Cloudflare's) or domain than a fancy car or boat.


When are .wp TLDs coming?


They already own .blog


The link in your profile doesnt work - http://www.justin.tv/startupschool/b/298808177



Nice! Updated profile.


There was a time when you could register one and two letter domains.


And a time in the 90s when they were actually free. :-)


you have to make sure you are on the right server, (apache vS enginx)


What's the answer to making WordPress sites faster?

I too have tried better hardware, CDNs, plugins like WP Super Cache, and others means of optimizing. Very little impact. Is the problem PHP?

I'm thinking of trying one of those plugins that convert the WordPress site to static web site. I'd imagine that'd have a big impact, at least for sites that don't need e.g. login, shopping carts, etc.


> Is the problem PHP?

PHP is fast for a dynamic language (compared to say Ruby/Python and even JS). It has the disadvantage that it gets slow by default the more code you have, because it has a static execution model.

WP is extremely bloated and slow though. You can only make it fast by telling Apache to not execute it and hitting your cache (or with a caching layer in front).

With heavy caching (flushed on data changes), hand written themes and plugins, modern build tools for frontend assets, image optimization etc. You can get get top metrics.

However, that's just frontend. The admin panel is always slow.

If your use-case allows it, you rather build one with something like hugo. Hugo and similar are very easy to use and net you much better results.

My general tip is to not build websites with WP if you have web development skills.


WordPress is very fast out of the box considering all its capabilities, it's not hard to get in the range of 100ms TTFB out of the box on dirt cheap VPS servers, which is pretty good in my book. The problem is that people add very heavy themes and plugins that push them well above acceptable TTFB numbers.

Full Site Editing with the new Gutenberg editor have amended a lot of that, it's very performant out of the box. Just as an example, I have a site averaging about 200ms for uncached requests, it has an FSE theme and 20 installed plugins, including heavy ones like ACF.

This is all out of the box without cache, but by adding a simple static page cache (either a plugin or something like Fastly, Varnish etc.) you can make it so that the p95 latency drops by 80-90% because most people will see cached page views any way.


The problem is architectural.

Wordpress at its core execute most of its user-facing code trough an un-parallelizable, self-modifying single threaded queue, which has to be run at every page reload[1] and everything and anything will have to inject stuff in it. From handling your pictures in your media library, to checking your server can actually send mails, to managing your page and posts content and layout, everything goes trough it. It's also a system that doesn't really play ball very easily with most PHP accelerators outside of baseline PHP opcache.

You may have better luck using a static cache or memcached. Depending on the theme you're using (90% of what's available from envato themeforest, for example) the improvement will be negligible due to the impact of all the uncachable third-party jquery plugins that are usually included on a commercial theme.

All of the data you're accessing is also for the most part queried from two tables of a single database instance[2] which again handles everything from your mail configuration, page routing and redirection, page layout, contents, stored forms, etc. No sharding, load balancing is natively available. Heck, most WP hosted solutions run MySQL on the same instance running Apache and PHP.

Also the data is usually stored as serialized php values, which have to be parsed and reformatted, again, at every page load using the system described beforehand.

[1]https://github.com/WordPress/wordpress-develop/blob/6.2/src/...

[2]https://codex.wordpress.org/Database_Description


The problem is the ecosystem. You can get response times for the main page down pretty low (especially with caching plugins) and the time to serve static assets is the same for Wordpress or a static site. Most likely if your site feels slow, the culprit is your theme and one or more plugins on your site. You can usually track down problem plugin(s) using PageSpeed Insights since their frontend assets are served from the plugin folders.


First, seconding everything dgb23 said in this thread.

I think if you don't have a need for that dynamic stuff, yes a static site generator is a slam dunk in my humble opinion.

The PHP/Wordpress model where pages are composited dynamically for each pageview was an idea that made sense 20+ years ago. Whereas today, regenerating 1000 (or 10,000) static HTML pages can be done in a few seconds anytime a new blog post is made, giving up-to-date sidebars, homepage and stuff. Other code which needs to be dynamic can usually be fully client-side. And for comments, I don't think almost anyone uses the WP comment feature anymore. It's either off due to spam, or delegated to Disqus or similar. That, combined with the constant stream of WP 0-day exploits, really argues for having your actual WP instance behind your firewall and serving your files from an S3 bucket or plain Nginx (etc).


Use a plugin like 'Cache Enabler' by KeyCDN, it's very lightweight and does exactly one thing very well.

Get rid of as many plugins as possible, many of them add a ton of load time and browser load. Woocommerce is especially bad.

Use a lightweight theme, there are a few good ones out there for that. Or just the default one it comes with.

And yeah if you have zero dynamic content needs then a static site generator can work fine. But with minimal plugins and a cache enabler, response time should be very fast anyways.


I worked on a Strattic conversion some time back - they basically scrape all your pages and serve them statically, but you do have to do some things to support search, forms, etc and you'll end up pruning plugins that don't work well with it.

But, serving static pages is very very fast afterwards.


Bet on Moore's Law and go fully dynamic.


I'll bet on future WP updates eating whatever perf improvements new hardware will give. Besides, Moore's Law is about the number of transistors. Speed - and especially single threaded speed which is what matters for PHP sites - is not going up nearly as fast anymore.


Yes, but practically speaking, waiting 20 years isn't an option. Moore's Law has stopped delivering rapid single-threaded performance gains and not everything is trivially parallelable.

The fastest single-threaded cpus today are only 2x faster than the fastest single-threaded cpus of a decade ago...


Mine renders pages in under 50ms under BAU load and it's hosted on a $1/month cPanel. The only trick I have used is to run it on PHP 8.1 with Lightspeed Cache


Redis or memcache plus a full page caching solution plug-in, mainly.


you also need a small footprint theme like (Neve), and customizing Apache with right modules to compress files, or with less customization ( nginx) might be faster


Yes, but: Number of concurrent visitors can change dramatically on lower vs higher. A caching plugin mitigates this somewhat, but I find that most companies don’t test whether their site can handle surges, or even if it can handle the projected traffic load.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: