BenchmarkPHP · HTTP/2

PHP HTTP/2 Benchmarks Hello World

This benchmark compares the speed at which different web servers respond to requests for small PHP scripts. We used a tiny script to avoid saturating the network connection and to show raw speed differences between the different setups. In our testing, LiteSpeed outperformed nginx and Apache by as much as 1.3X and 4.5X, respectively.

Key results

At A Glance

HTTP/2 Test Results

LiteSpeed Web Server responds to PHP requests 1.3X faster than Nginx and 4.5X faster than Apache.

HTTP 1.1 Test Results

LiteSpeed Web Server responds to PHP requests 1.2X faster than Nginx and 4.3X faster than Apache.

Published benchmark · interactive view

HTTP/2 Test Results

Choose a metric to compare the results.

HIGHEST RESULT13571.9LiteSpeed
Requests / Sec0 — 13571.9
LiteSpeed
13571.9
Nginx
10570.9
Apache
3049.1
1.3× vs Nginx on this metricView source and methodology ↗
ServerRequests / SecMB / SecFailuresHeader Compression
LiteSpeed13571.90.88096.19%
Nginx10570.91.77029.61%
Apache3049.10.18094.2%
Published benchmark · interactive view

HTTP 1.1 Test Results

Choose a metric to compare the results.

HIGHEST RESULT12555.4LiteSpeed
Requests / Sec0 — 12555.4
LiteSpeed
12555.4
Nginx
10398.7
Apache
2953.98
1.2× vs Nginx on this metricView source and methodology ↗
ServerRequests / SecMB / SecFailuresHeader Compression
LiteSpeed12555.43.16N/AN/A
Nginx10398.73.08N/AN/A
Apache2953.980.79N/AN/A
Methodology

Test Environment

Figures as published by LiteSpeed Technologies. Results depend on hardware, configuration and workload — test with your own application for the most relevant numbers.

  • Server Tested: LiteSpeed Web Server v5.4.1 nginx v1.16.1 Apache v2.4.41
  • Client Machine: Memory Size: 1GB CPU number: 1 CPU Threads: 1 CPU Model: Virtual CPU 6db7dc0e7704 Disk: NVMe SSD
  • Server Machine: Memory Size: 1GB CPU number: 1 CPU Threads: 1 CPU Model: Virtual CPU 6db7dc0e7704 Disk: NVMe SSD
  • Network: Traffic: 7.82 Gbits/sec Latency: 0.374 ms
Ready when you are

Switch to LiteSpeed
in minutes.

Choose your edition, activate over SSH, and start serving faster. Transparent pricing, no setup fees, engineers on call 24/7.

Instant delivery15-day trialFree migrationSupport 24/7