[mapserver-dev] mapserver 5.4 beta performance test
Guillaume Sueur
no-reply at neogeo-online.net
Tue Mar 31 09:54:34 EDT 2009
Hi,
I'd like to share some strange results I've got back when testing
mapserver 5.4 beta on a huge streets postgis layer.
here are the tests :
5.4 beta DEBUG ON -----------------------------------------------
time /usr/local/src/mapserver-5.4.0-beta3/shp2img -m test.map
-map_debug 5 -o test.png
[Tue Mar 31 15:49:15 2009].935351 msDrawMap(): Layer 0 (streets), 1.617s
[Tue Mar 31 15:49:15 2009].935551 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Mar 31 15:49:15 2009].935603 msDrawMap() total time: 1.619s
[Tue Mar 31 15:49:16 2009].24176 msSaveImage() total time: 0.089s
[Tue Mar 31 15:49:16 2009].24347 msFreeMap(): freeing map at 0x818f8e0.
real 0m1.719s
user 0m0.284s
sys 0m0.028s
5.4 BETA DEBUG OFF ---------------------------------------------
time /usr/local/src/mapserver-5.4.0-beta3/shp2img -m test.map -o test.png
real 0m1.994s
user 0m0.408s
sys 0m0.020s
as you can see it goes faster with debug ON (tested several times)
if I try it back with mapserver 5.2 I get :
5.2 DEBUG ON -----------------------------------------------
time /usr/local/src/mapserver-5.2.0/shp2img -m test.map -map_debug 5 -o
test.png
[Tue Mar 31 15:52:01 2009].891334 msDrawMap(): Layer 0 (streets), 1.434s
[Tue Mar 31 15:52:01 2009].891549 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Mar 31 15:52:01 2009].891603 msDrawMap() total time: 1.437s
[Tue Mar 31 15:52:02 2009].43083 msSaveImage() total time: 0.151s
[Tue Mar 31 15:52:02 2009].43240 msFreeMap(): freeing map at 0x81878e0.
real 0m1.599s
user 0m0.268s
sys 0m0.016s
5.2 DEBUG OFF -----------------------------------------------
time /usr/local/src/mapserver-5.2.0/shp2img -m test.map -o test.png
real 0m1.481s
user 0m0.296s
sys 0m0.008s
So the 5.4beta seems definitely slower than 5.2, and goes even slower
when DEBUG is off.
Is there a special setting activated by default on beta releases which
could explain that ?
Best regards
Guillaume
More information about the mapserver-dev
mailing list