Why Does Optimized Website Have Lower RPS Than Unoptimized Website?

Posted November 11, 2021 71 views
NginxUbuntuServer OptimizationSecurityDigitalOcean Droplets

I have one web server that only has security configurations.

I have another web server that has the same security configurations, plus the following optimizations: webp, compression, cache, faster nameservers, http2, and minification.

The web server with optimizations performs worse with apache benchmark.

Could someone please help make sense of this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @davidlittlefieldCoral,

Apache Benchmark is a bit of an abstract tool. In order to test your Droplet properly, you need to have a website, if possible the same website as websites have optimization as well and it highly influences your server’s performance.

What I’ll recommend is as said copying the same Website to both Droplets, configuring them to work one with a domain, the other droplet with a subdomain and then test with Benchmark to see if the outcome will be the same. It sounds dull, but it’s really hard to compare performance otherwise.

  • Hi KFSys,

    Thanks, for your suggestion. I just gave it a go.

    The results are similar. The unoptimized web server is still faster.

    From your experience, what would you say is good rps for a $5 droplet?

    • Hi @davidlittlefieldCoral,

      To be honest, I’ve never actually checked that. I’ve always been more focused on how the Apps are performing and as soon as I’m pleased with it, I drop that issue. So regarding rps, I can’t say that much but if you manage to find anything please do share it.