Skip to content

Commit 504224d

Browse files
author
Tim Lind
committed
Optimized with an in-memory file cache. Doubled performance.
Included benchmark results. Added a nice readme to the example folder, showing some techniques.
1 parent 406db6a commit 504224d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1443
-71
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient).....done
6+
7+
8+
Server Software:
9+
Server Hostname: 127.0.0.1
10+
Server Port: 3000
11+
12+
Document Path: /home.html
13+
Document Length: 6865 bytes
14+
15+
Concurrency Level: 100
16+
Time taken for tests: 0.058 seconds
17+
Complete requests: 100
18+
Failed requests: 0
19+
Write errors: 0
20+
Total transferred: 707400 bytes
21+
HTML transferred: 686500 bytes
22+
Requests per second: 1721.61 [#/sec] (mean)
23+
Time per request: 58.085 [ms] (mean)
24+
Time per request: 0.581 [ms] (mean, across all concurrent requests)
25+
Transfer rate: 11893.27 [Kbytes/sec] received
26+
27+
Connection Times (ms)
28+
min mean[+/-sd] median max
29+
Connect: 3 5 1.4 6 7
30+
Processing: 31 42 5.4 43 49
31+
Waiting: 31 41 5.4 43 49
32+
Total: 38 47 4.2 48 52
33+
34+
Percentage of the requests served within a certain time (ms)
35+
50% 48
36+
66% 49
37+
75% 49
38+
80% 51
39+
90% 51
40+
95% 52
41+
98% 52
42+
99% 52
43+
100% 52 (longest request)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient)
6+
7+
8+
Server Software:
9+
Server Hostname: 127.0.0.1
10+
Server Port: 3000
11+
12+
Document Path: /home.html
13+
Document Length: 6865 bytes
14+
15+
Concurrency Level: 100
16+
Time taken for tests: 0.324 seconds
17+
Complete requests: 1000
18+
Failed requests: 0
19+
Write errors: 0
20+
Total transferred: 7074000 bytes
21+
HTML transferred: 6865000 bytes
22+
Requests per second: 3082.98 [#/sec] (mean)
23+
Time per request: 32.436 [ms] (mean)
24+
Time per request: 0.324 [ms] (mean, across all concurrent requests)
25+
Transfer rate: 21297.88 [Kbytes/sec] received
26+
27+
Connection Times (ms)
28+
min mean[+/-sd] median max
29+
Connect: 0 1 2.3 0 10
30+
Processing: 0 30 87.8 1 313
31+
Waiting: 0 30 87.9 1 313
32+
Total: 1 31 90.1 2 323
33+
34+
Percentage of the requests served within a certain time (ms)
35+
50% 2
36+
66% 2
37+
75% 3
38+
80% 3
39+
90% 9
40+
95% 315
41+
98% 317
42+
99% 317
43+
100% 323 (longest request)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient)
6+
7+
8+
Server Software:
9+
Server Hostname: 127.0.0.1
10+
Server Port: 3000
11+
12+
Document Path: /home.html
13+
Document Length: 6865 bytes
14+
15+
Concurrency Level: 100
16+
Time taken for tests: 2.171 seconds
17+
Complete requests: 10000
18+
Failed requests: 0
19+
Write errors: 0
20+
Total transferred: 70740000 bytes
21+
HTML transferred: 68650000 bytes
22+
Requests per second: 4605.36 [#/sec] (mean)
23+
Time per request: 21.714 [ms] (mean)
24+
Time per request: 0.217 [ms] (mean, across all concurrent requests)
25+
Transfer rate: 31814.73 [Kbytes/sec] received
26+
27+
Connection Times (ms)
28+
min mean[+/-sd] median max
29+
Connect: 0 1 0.9 1 11
30+
Processing: 7 21 4.3 20 55
31+
Waiting: 6 20 4.3 20 55
32+
Total: 13 22 4.4 21 57
33+
34+
Percentage of the requests served within a certain time (ms)
35+
50% 21
36+
66% 22
37+
75% 22
38+
80% 23
39+
90% 25
40+
95% 27
41+
98% 34
42+
99% 47
43+
100% 57 (longest request)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient)
6+
Total of 16458 requests completed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient)
6+
7+
8+
Server Software:
9+
Server Hostname: 127.0.0.1
10+
Server Port: 3000
11+
12+
Document Path: /home.html
13+
Document Length: 6865 bytes
14+
15+
Concurrency Level: 100
16+
Time taken for tests: 100.919 seconds
17+
Complete requests: 50000
18+
Failed requests: 0
19+
Write errors: 0
20+
Total transferred: 353700000 bytes
21+
HTML transferred: 343250000 bytes
22+
Requests per second: 495.45 [#/sec] (mean)
23+
Time per request: 201.837 [ms] (mean)
24+
Time per request: 2.018 [ms] (mean, across all concurrent requests)
25+
Transfer rate: 3422.66 [Kbytes/sec] received
26+
27+
Connection Times (ms)
28+
min mean[+/-sd] median max
29+
Connect: 0 182 1687.9 1 19020
30+
Processing: 0 20 4.0 19 54
31+
Waiting: 0 19 3.9 19 52
32+
Total: 0 202 1687.6 20 19045
33+
34+
Percentage of the requests served within a certain time (ms)
35+
50% 20
36+
66% 21
37+
75% 21
38+
80% 22
39+
90% 24
40+
95% 28
41+
98% 37
42+
99% 10958
43+
100% 19045 (longest request)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient)
6+
Total of 16386 requests completed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient).....done
6+
7+
8+
Server Software:
9+
Server Hostname: 127.0.0.1
10+
Server Port: 3000
11+
12+
Document Path: /home.html
13+
Document Length: 6865 bytes
14+
15+
Concurrency Level: 100
16+
Time taken for tests: 0.080 seconds
17+
Complete requests: 100
18+
Failed requests: 0
19+
Write errors: 0
20+
Total transferred: 707000 bytes
21+
HTML transferred: 686500 bytes
22+
Requests per second: 1249.75 [#/sec] (mean)
23+
Time per request: 80.016 [ms] (mean)
24+
Time per request: 0.800 [ms] (mean, across all concurrent requests)
25+
Transfer rate: 8628.65 [Kbytes/sec] received
26+
27+
Connection Times (ms)
28+
min mean[+/-sd] median max
29+
Connect: 2 4 1.5 4 7
30+
Processing: 50 61 6.4 60 73
31+
Waiting: 50 60 6.3 60 73
32+
Total: 57 65 5.6 63 80
33+
34+
Percentage of the requests served within a certain time (ms)
35+
50% 63
36+
66% 64
37+
75% 71
38+
80% 71
39+
90% 74
40+
95% 74
41+
98% 79
42+
99% 80
43+
100% 80 (longest request)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient)
6+
7+
8+
Server Software:
9+
Server Hostname: 127.0.0.1
10+
Server Port: 3000
11+
12+
Document Path: /home.html
13+
Document Length: 6865 bytes
14+
15+
Concurrency Level: 100
16+
Time taken for tests: 0.586 seconds
17+
Complete requests: 1000
18+
Failed requests: 0
19+
Write errors: 0
20+
Total transferred: 7070000 bytes
21+
HTML transferred: 6865000 bytes
22+
Requests per second: 1707.62 [#/sec] (mean)
23+
Time per request: 58.561 [ms] (mean)
24+
Time per request: 0.586 [ms] (mean, across all concurrent requests)
25+
Transfer rate: 11789.88 [Kbytes/sec] received
26+
27+
Connection Times (ms)
28+
min mean[+/-sd] median max
29+
Connect: 0 1 1.7 0 9
30+
Processing: 37 57 11.9 55 107
31+
Waiting: 37 56 11.9 54 106
32+
Total: 37 58 13.2 55 113
33+
34+
Percentage of the requests served within a certain time (ms)
35+
50% 55
36+
66% 58
37+
75% 59
38+
80% 60
39+
90% 76
40+
95% 96
41+
98% 102
42+
99% 105
43+
100% 113 (longest request)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient)
6+
7+
8+
Server Software:
9+
Server Hostname: 127.0.0.1
10+
Server Port: 3000
11+
12+
Document Path: /home.html
13+
Document Length: 6865 bytes
14+
15+
Concurrency Level: 100
16+
Time taken for tests: 5.353 seconds
17+
Complete requests: 10000
18+
Failed requests: 0
19+
Write errors: 0
20+
Total transferred: 70700000 bytes
21+
HTML transferred: 68650000 bytes
22+
Requests per second: 1868.23 [#/sec] (mean)
23+
Time per request: 53.526 [ms] (mean)
24+
Time per request: 0.535 [ms] (mean, across all concurrent requests)
25+
Transfer rate: 12898.85 [Kbytes/sec] received
26+
27+
Connection Times (ms)
28+
min mean[+/-sd] median max
29+
Connect: 0 0 0.6 0 9
30+
Processing: 33 53 5.4 54 88
31+
Waiting: 33 53 5.3 54 88
32+
Total: 33 53 5.5 55 91
33+
34+
Percentage of the requests served within a certain time (ms)
35+
50% 55
36+
66% 56
37+
75% 57
38+
80% 57
39+
90% 58
40+
95% 60
41+
98% 64
42+
99% 72
43+
100% 91 (longest request)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
2+
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
3+
Licensed to The Apache Software Foundation, http://www.apache.org/
4+
5+
Benchmarking 127.0.0.1 (be patient)
6+
7+
8+
Server Software:
9+
Server Hostname: 127.0.0.1
10+
Server Port: 3000
11+
12+
Document Path: /home.html
13+
Document Length: 6865 bytes
14+
15+
Concurrency Level: 100
16+
Time taken for tests: 186.576 seconds
17+
Complete requests: 100000
18+
Failed requests: 2
19+
(Connect: 2, Receive: 0, Length: 0, Exceptions: 0)
20+
Write errors: 0
21+
Total transferred: 707007070 bytes
22+
HTML transferred: 686506865 bytes
23+
Requests per second: 535.97 [#/sec] (mean)
24+
Time per request: 186.576 [ms] (mean)
25+
Time per request: 1.866 [ms] (mean, across all concurrent requests)
26+
Transfer rate: 3700.56 [Kbytes/sec] received
27+
28+
Connection Times (ms)
29+
min mean[+/-sd] median max
30+
Connect: 0 141 1485.9 0 19026
31+
Processing: 1 46 15.3 50 91
32+
Waiting: 0 45 15.3 50 91
33+
Total: 1 186 1485.2 51 19090
34+
35+
Percentage of the requests served within a certain time (ms)
36+
50% 51
37+
66% 55
38+
75% 57
39+
80% 58
40+
90% 60
41+
95% 63
42+
98% 925
43+
99% 2975
44+
100% 19090 (longest request)

0 commit comments

Comments
 (0)