[MS4W-Users] FastCGI tests

Yves Moisan yves.moisan at boreal-is.com
Wed Dec 16 16:08:21 EST 2009


> Hello Yves,
> 
> Thanks for your persistence in reporting this.  I'll install a fresh 
> copy, test, and report back.
> 
> -jeff

Hi Jeff,

In the meantime, we started setting up a testing environment to evaluate
the performance of combinations of MS4W/PostgreSQL/PostGIS.  With a
fixed DB (PG 8.4/PostGIS 1.5 binaries for windows) and a table of a few
vector features, we used the following ab command on urls pointing to
MS4W 2.3.1 (CGI an FCGI) and MS4W 3.0 b7.  Results are intriguing.

The command :

ms4w_3.0_beta7\Apache\bin\ab -n 100 -c 10
"http://localhost:8030/cgi-bin/mapserv.exe?map=../../../maps/maps/test.map&mode=map"

(ms4w 2.3.1 was set up on port 8031)

MS4W 2.3.1 CGI
--------------

Server Software:        Apache/2.2.10
Server Hostname:        localhost
Server Port:            8031

Document
Path:          /cgi-bin/mapserv.exe?map=../../../maps/maps/test231.map&mode=map
Document Length:        6982 bytes

Concurrency Level:      10
Time taken for tests:   41.416 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      711300 bytes
HTML transferred:       698200 bytes
Requests per second:    2.41 [#/sec] (mean)
Time per request:       4141.619 [ms] (mean)
Time per request:       414.162 [ms] (mean, across all concurrent
requests)
Transfer rate:          16.77 [Kbytes/sec] received

MS4W 2.3.1 FCGI
---------------

Server Software:        Apache/2.2.10
Server Hostname:        localhost
Server Port:            8031

Document
Path:          /fcgi-bin/mapserv.exe?map=../../../maps/maps/test231.map&mode=map
Document Length:        6982 bytes

Concurrency Level:      10
Time taken for tests:   12.318 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      711300 bytes
HTML transferred:       698200 bytes
Requests per second:    8.12 [#/sec] (mean)
Time per request:       1231.771 [ms] (mean)
Time per request:       123.177 [ms] (mean, across all concurrent
requests)
Transfer rate:          56.39 [Kbytes/sec] received

MS4W 3.0 b7 CGI
---------------
Server Software:        Apache/2.2.11
Server Hostname:        localhost
Server Port:            8030

Document
Path:          /cgi-bin/mapserv.exe?map=../../../maps/maps/test30.map&mode=map
Document Length:        7227 bytes

Concurrency Level:      10
Time taken for tests:   52.349 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      735800 bytes
HTML transferred:       722700 bytes
Requests per second:    1.91 [#/sec] (mean)
Time per request:       5234.884 [ms] (mean)
Time per request:       523.488 [ms] (mean, across all concurrent
requests)
Transfer rate:          13.73 [Kbytes/sec] received

Conclusions : the throughput for FGCI is 4 times of CGI; 3.0 is *slower*
than 2.3.1 in CGI mode

We installed both packages the same.

Cheers,

Yves



More information about the MS4W-Users mailing list