WordPress Benchmark (Archived)

[vc_row][vc_column width=”1/6″][/vc_column][vc_column width=”2/3″][vc_message message_box_style=”solid” message_box_color=”blue” icon_fontawesome=”icon-link” closeable=””]

See Our Newer WordPress Benchmarks Here

[/vc_message][/vc_column][vc_column width=”1/6″][/vc_column][/vc_row][vc_row][vc_column][vc_empty_space alter_height=”medium” hide_on_mobile=””][vc_column_text]

WordPress Benchmark

OpenLiteSpeed vs. NGiNX vs. Apache

[/vc_column_text][vc_empty_space alter_height=”medium” hide_on_mobile=””][/vc_column][/vc_row][vc_row][vc_column][vc_column_text]If our search statistics are any indication, the question on everyone’s mind is “How does OpenLiteSpeed compare to NGiNX and Apache?” We think that’s a question that deserves an answer, so we set up a test environment and got to work.

When it comes to WordPress, caching is important, so we made sure to use an appropriate caching solution for each web server in our tests.

All tests were performed with Keep-Alive enabled. (See more common settings under Web Server Configuration below.)[/vc_column_text][vc_empty_space alter_height=”medium” hide_on_mobile=””][/vc_column][/vc_row][vc_row][vc_column][vc_column_text]

The Results

The following charts show how many requests per second the three servers processed during our series of tests. The larger the number, the better.[/vc_column_text][vc_empty_space alter_height=”medium” hide_on_mobile=””][/vc_column][/vc_row][vc_row][vc_column width=”1/6″][/vc_column][vc_column width=”2/3″][vc_column_text]

Benchmark

[/vc_column_text][vc_empty_space alter_height=”small” hide_on_mobile=””][vc_progress_bar values=”%5B%7B%22label%22%3A%22OpenLiteSpeed%20%2B%20LSCache%22%2C%22value%22%3A%2229234%22%2C%22color%22%3A%22blue%22%7D%2C%7B%22label%22%3A%22Nginx%20%2B%20FastCGI%20Cache%22%2C%22value%22%3A%225283%22%2C%22color%22%3A%22green%22%7D%2C%7B%22label%22%3A%22Apache%20%2B%20W3%20Total%20Cache%22%2C%22value%22%3A%222380%22%2C%22color%22%3A%22pink%22%7D%5D” bgcolor=”mulled-wine” css_animation=”fadeIn” narrow=”1″ units=” Requests Per Second” css=”.vc_custom_1540932968466{border-top-width: 1px !important;border-right-width: 1px !important;border-bottom-width: 1px !important;border-left-width: 1px !important;padding-top: 35px !important;padding-right: 35px !important;padding-bottom: 35px !important;padding-left: 35px !important;background-color: #fbfdfd !important;border-left-color: #accddd !important;border-left-style: solid !important;border-right-color: #accddd !important;border-right-style: solid !important;border-top-color: #accddd !important;border-top-style: solid !important;border-bottom-color: #accddd !important;border-bottom-style: solid !important;border-radius: 5px !important;}”][vc_empty_space alter_height=”medium” hide_on_mobile=””][/vc_column][vc_column width=”1/6″][/vc_column][/vc_row][vc_row][vc_column][vc_column_text]WordPress is a heavy PHP application and as such, caching is strongly recommended. In this test, we pair each server with an appropriate caching option.

As you can see, OpenLiteSpeed outperforms NGiNX and Apache in all of our scenarios.[/vc_column_text][vc_empty_space alter_height=”medium” hide_on_mobile=””][/vc_column][/vc_row][vc_row][vc_column][vc_column_text]

Try It Yourself

In the interest of transparency, we’re including the specs of our web server configuration and test environment below. Feel free to run the same benchmarks and compare OpenLiteSpeed to NGiNX and Apache for yourself.

This is the command we used in all tests (Replace example.com/path) with the location of your test subjects):
ab -n 10000 -k -H "Accept-Encoding: gzip,deflate" -c 100 example.com/path
Each test was run five times, and the average result was used for our graphs.[/vc_column_text][vc_empty_space alter_height=”medium” hide_on_mobile=””][/vc_column][/vc_row][vc_row][vc_column][vc_separator style=”dotted” border_width=”2″][/vc_column][/vc_row][vc_row gap=”35″ equal_height=”yes” content_placement=”middle”][vc_column][vc_column_text el_id=”web-server-config”]

Test Environment

[/vc_column_text][vc_row_inner equal_height=”yes” gap=”35″][vc_column_inner width=”1/2″][vc_empty_space alter_height=”medium” hide_on_mobile=””][vc_column_text]

Web Server Configuration
common Settings For All Servers
  • Keep-Alive
  • gzip
  • OPCache
  • PHP use socket
  • PHP version 7.1.2
Additional OpenLiteSpeed Settings
  • Number of Workers: 4
  • PHP_LSAPI_CHILDREN = 20
  • LSAPI_AVOID_FORK = 1
Additional Nginx Settings
  • worker_processes 4
  • worker_connections 4096
  • pm.start_servers = 20

[/vc_column_text][vc_empty_space alter_height=”small” hide_on_mobile=””][/vc_column_inner][vc_column_inner width=”1/2″][vc_empty_space alter_height=”medium” hide_on_mobile=””][vc_column_text]

Software
Web Server Version:
  • OLS: v1.4.28
  • NGiNX: v1.12.2
  • Apache: v2.4.6
Server API Version:
  • OLS: LSAPI v6.11
  • NGiNX: FPM/FastCGI
  • Apache: Apache 2.0 Handler
Cache Version:
WordPress version:
  • Version: 4.9.4

[/vc_column_text][vc_empty_space alter_height=”small” hide_on_mobile=””][/vc_column_inner][/vc_row_inner][vc_row_inner equal_height=”yes” gap=”35″][vc_column_inner width=”1/2″][vc_empty_space alter_height=”medium” hide_on_mobile=””][vc_column_text]

Hardware
Both Client and Server Specs:
  • Intel Xeon CPU E7- 4870 4 Core @ 2.40GHz
  • 4GB RAM
  • 120GB ZFS RAID-Z2 iSCSI Drive
  • CentOS 7

[/vc_column_text][vc_empty_space alter_height=”small” hide_on_mobile=””][/vc_column_inner][/vc_row_inner][vc_empty_space alter_height=”small” hide_on_mobile=””][vc_column_text]Although we didn’t use one for our benchmarks, We recommend Solid State Drives (SSD) in production environments.[/vc_column_text][/vc_column][/vc_row]