Hi, Some days I post my first letter( http://mail-archives.apache.org/mod_mbox/httpd-dev/201103.mbox/raw/%3CAANLkTimfg4yeGExZXNP=yjybjdrmhrqpb4jo--sn6...@mail.gmail.com%3E) in http-dev, but the letter can be send to every's box with some reason.,
And now I update mod_lua to support lua server scope with apr_reslist_apis, and I do some test with ab on my Pc. I got better performance. (75 -> 227 -> 277) #/s Change please see patch file, I hope this patch can be merge in svn.. :) mod_lua in svn,head version ----------------------------------------------------------------------- This is ApacheBench, Version 2.3 <$Revision: 1004962 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) Server Software: Apache/2.3.12-dev Server Hostname: localhost Server Port: 80 Document Path: /simple.lua Document Length: 9 bytes Concurrency Level: 50 Time taken for tests: 13.310 seconds Complete requests: 1000 Failed requests: 0 Write errors: 0 Total transferred: 164000 bytes HTML transferred: 9000 bytes Requests per second: 75.13 [#/sec] (mean) Time per request: 665.500 [ms] (mean) Time per request: 13.310 [ms] (mean, across all concurrent requests) Transfer rate: 12.03 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 1 0.5 1 5 Processing: 89 662 1946.3 213 9253 Waiting: 89 658 1938.1 212 9236 Total: 90 662 1946.3 214 9253 Percentage of the requests served within a certain time (ms) 50% 214 66% 221 75% 228 80% 235 90% 274 95% 9012 98% 9147 99% 9152 100% 9253 (longest request) mod_lua updated, Lua_Scope is once ----------------------------------------------------------------------- This is ApacheBench, Version 2.3 <$Revision: 1004962 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) Server Software: Apache/2.3.12-dev Server Hostname: localhost Server Port: 80 Document Path: /simple.lua Document Length: 9 bytes Concurrency Level: 50 Time taken for tests: 4.393 seconds Complete requests: 1000 Failed requests: 0 Write errors: 0 Total transferred: 164000 bytes HTML transferred: 9000 bytes Requests per second: 227.63 [#/sec] (mean) Time per request: 219.650 [ms] (mean) Time per request: 4.393 [ms] (mean, across all concurrent requests) Transfer rate: 36.46 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 1 0.9 1 14 Processing: 58 215 34.1 216 317 Waiting: 56 210 36.6 214 314 Total: 59 216 34.1 217 318 Percentage of the requests served within a certain time (ms) 50% 217 66% 227 75% 235 80% 240 90% 251 95% 265 98% 282 99% 301 100% 318 (longest request) mod_lua updated, with Lua_Scope server 10 50 ---------------------------------------------------------------------- This is ApacheBench, Version 2.3 <$Revision: 1004962 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking localhost (be patient) Server Software: Apache/2.3.12-dev Server Hostname: localhost Server Port: 80 Document Path: /simple.lua Document Length: 9 bytes Concurrency Level: 50 Time taken for tests: 3.606 seconds Complete requests: 1000 Failed requests: 0 Write errors: 0 Total transferred: 164000 bytes HTML transferred: 9000 bytes Requests per second: 277.32 [#/sec] (mean) Time per request: 180.300 [ms] (mean) Time per request: 3.606 [ms] (mean, across all concurrent requests) Transfer rate: 44.41 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 1 0.6 1 7 Processing: 43 176 24.9 175 272 Waiting: 36 174 27.3 173 262 Total: 44 177 24.9 176 272 Percentage of the requests served within a certain time (ms) 50% 176 66% 184 75% 189 80% 192 90% 201 95% 216 98% 233 99% 242 100% 272 (longest request)
mod_lua.diff
Description: Binary data