Overview
When loading a Dynamic PHP file with ModSecurity enabled, LiteSpeed Enterprise beats nginx by up to 13X, while Apache loses to LiteSpeed Enterprise by nearly 6X!
We wanted to know how ModSecurity impacts server performance, so we tested ModSecurity implementations on HTTP/2 from LiteSpeed, nginx, and Apache, to see how they would compare under a variety of conditions, and using either Comodo or OWASP rulesets.
When loading a Dynamic PHP file with ModSecurity enabled, LiteSpeed Enterprise beats nginx by up to 13X, while Apache loses to LiteSpeed Enterprise by nearly 6X!
LiteSpeed Enterprise performs 13X faster than nginx and 6X faster than Apache with ModSecurity enabled when loading Dynamic PHP files.
When loading a Static HTML file with ModSecurity enabled, LiteSpeed Enterprise beats nginx by a remarkable 179X with Comodo rules! Apache loses to LiteSpeed Enterprise by over 33X.
LiteSpeed Enterprise performs more than 123X faster than nginx and more than 33X faster than Apache with ModSecurity enabled when loading Static HTML.
When loading a Cached WordPress Front Page with ModSecurity enabled, LiteSpeed Enterprise beats nginx by an exceptional 220X with Comodo rules! Apache loses to LiteSpeed Enterprise by over 74X.
LiteSpeed Enterprise performs over 143X faster than nginx and 74X faster than Apache with ModSecurity enabled when loading Cached WordPress.
Choose a metric to compare the results.
| Server | No WAF | WAF with OWASP | WAF with Comodo |
|---|---|---|---|
| Litespeed Enterprise v5.4.2 | 11685 | 5824 | 4698 |
| OpenLitespeed v1.6.4 | 8997 | 806 | 403 |
| Nginx v1.17.6 | 8941 | 439 | 351 |
| Apache v2.4.41 | 2618 | 1021 | 968 |
Choose a metric to compare the results.
| Server | No WAF | WAF with OWASP | WAF with Comodo |
|---|---|---|---|
| Litespeed Enterprise v5.4.2 | 66321 | 61511 | 66573 |
| OpenLitespeed v1.6.4 | 52562 | 46694 | 40753 |
| Nginx v1.17.6 | 24263 | 497 | 371 |
| Apache v2.4.41 | 5200 | 1259 | 1967 |
Choose a metric to compare the results.
| Server | No WAF | WAF with OWASP | WAF with Comodo |
|---|---|---|---|
| Litespeed Enterprise v5.4.2 | 37929 | 38248 | 41020 |
| OpenLitespeed v1.6.4 | 14980 | 15030 | 15649 |
| Nginx v1.17.6 | 5410 | 267 | 186 |
| Apache v2.4.41 | 808 | 515 | 521 |
Figures as published by LiteSpeed Technologies. Results depend on hardware, configuration and workload — test with your own application for the most relevant numbers.
Choose your edition, activate over SSH, and start serving faster. Transparent pricing, no setup fees, engineers on call 24/7.