Benchmarks Litespeed - static/dynamic/cached

track1

Well-Known Member
#1
Hello,
i have been doind some benchmark tests using litespeed.

Tests with ab, using other box under same lan.

--------------------------------------------
test1.php dynamic content: <?php echo Hello World; ?>
--------------------------------------------
Total Time: 72s [13.700 requests/s] [1.000.000 requests, 100 concurrents]
Initial Load: 0.00
Final Load: 3.27


--------------------------------------------
test1.txt static: Hello World
--------------------------------------------
Total Time: 54s [18.308 requests/s] [1.000.000 requests, 100 concurrents]
Initial Load: 0.00
Final Load: 0.61


--------------------------------------------
test1.php dynamic – cached-litespeed engine: <?php echo Hello World; ?>
--------------------------------------------
Total Time: 30s [32.697 requests/s] [1.000.000 requests, 100 concurrents]
Initial Load: 0.00
Final Load: 0.72



Why cached dynamic results are much faster than static benchmark results?
 

NiteWave

Administrator
#2
I'd assume the tests is under non-keep alive?

how about "ab -k -c 100 -n 1000000 ..." (keep-alive) result?

not sure if renaming test1.txt to test1.html have any difference.

what's the litespeed license: 1/2/4 CPU?
 

track1

Well-Known Member
#3
tests were done with -k initially
Just renamed .txt to .html, but same result

2 CPUs license. Server is Dual 4 cores (8 cores, 16 threads).

Code:
/usr/local/apache/bin/ab -k -n 1000000 -c 100 http://---.com/test1.html

Server Software:        LiteSpeed
Server Hostname:        ---.com
Server Port:            80

Document Path:          /test1.html
Document Length:        13 bytes

Concurrency Level:      100
Time taken for tests:   54.759 seconds
Complete requests:      1000000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    0
Total transferred:      242000000 bytes
HTML transferred:       13000000 bytes
Requests per second:    18261.69 [#/sec] (mean)
Time per request:       5.476 [ms] (mean)
Time per request:       0.055 [ms] (mean, across all concurrent requests)
Transfer rate:          4315.75 [Kbytes/sec] received
Code:
LITESPEED CACHE ENABLED

/usr/local/apache/bin/ab -k -n 1000000 -c 100 http://---.com/test1.php

Server Software:        LiteSpeed
Server Hostname:        ---.com
Server Port:            80

Document Path:          /test1.php
Document Length:        12 bytes

Concurrency Level:      100
Time taken for tests:   31.106 seconds
Complete requests:      1000000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    990001
Total transferred:      211625237 bytes
HTML transferred:       12000000 bytes
Requests per second:    32148.41 [#/sec] (mean)
Time per request:       3.111 [ms] (mean)
Time per request:       0.031 [ms] (mean, across all concurrent requests)
Transfer rate:          6643.96 [Kbytes/sec] received
 

track1

Well-Known Member
#5
no effect changing Max Keep-Alive Requests from 1.000 to 10.000, same result.
But got it changing Smart Keep-Alive from Yes to No

Code:
/usr/local/apache/bin/ab -k -n 1000000 -c 100 http://---.com/test1.html

Server Software:        LiteSpeed
Server Hostname:        ---.com
Server Port:            80

Document Path:          /test1.html
Document Length:        13 bytes

Concurrency Level:      100
Time taken for tests:   30.415 seconds
Complete requests:      1000000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    990148
Total transferred:      278635476 bytes
HTML transferred:       13000000 bytes
Requests per second:    32878.52 [#/sec] (mean)
Time per request:       3.041 [ms] (mean)
Time per request:       0.030 [ms] (mean, across all concurrent requests)
Transfer rate:          8946.41 [Kbytes/sec] received
 

NiteWave

Administrator
#6
so for .html file, "Smart Keep-Alive=Yes" is slower than "No" :)

now req/s for static and cached page matches.

per tips of "Smart Keep-Alive", change test1.html to test1.css or test1.js, and set "Smart Keep-Alive=Yes", should be fastest?
 

track1

Well-Known Member
#7
Smart Keep-Alive ON, file: test1.css

Concurrency Level: 100
Time taken for tests: 38.232 seconds
Complete requests: 1000000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 990153
Total transferred: 348635661 bytes
HTML transferred: 13000000 bytes
Requests per second: 26156.16 [#/sec] (mean)
Time per request: 3.823 [ms] (mean)
Time per request: 0.038 [ms] (mean, across all concurrent requests)
Transfer rate: 8905.24 [Kbytes/sec] received
 

track1

Well-Known Member
#9
Smart Keep-Alive No

Document Path: /test1.css
Document Length: 13 bytes

Concurrency Level: 100
Time taken for tests: 41.586 seconds
Complete requests: 1000000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 990152
Total transferred: 348635624 bytes
HTML transferred: 13000000 bytes
Requests per second: 24046.40 [#/sec] (mean)
Time per request: 4.159 [ms] (mean)
Time per request: 0.042 [ms] (mean, across all concurrent requests)
Transfer rate: 8186.95 [Kbytes/sec] received
 
Top