/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk
13 by Suren A. Chilingaryan
LibXML Pull Parser, FAXPP Parser, Mono security benchmark, multiple fixes
1
--------------------------------------------------------------------------------
2
Command:            ./libxml-pull 1 xmlgen 262144
3
Massif arguments:   --heap=yes --depth=5 --massif-out-file=/tmp/massif.out
4
ms_print arguments: /tmp/massif.out
5
--------------------------------------------------------------------------------
6
7
8
    KB
9
289.9^               :                    #             .             ,      .
10
     |              @:                    #             :             @      :
11
     |.....,........@:                    #,....,..,.,..:             @      :
12
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
13
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
14
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
15
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
16
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
17
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
18
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
19
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
20
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
21
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
22
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
23
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
24
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
25
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
26
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
27
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
28
     |:::::@::::::::@:                    #@::::@::@:@:::             @      :
29
   0 +----------------------------------------------------------------------->Mi
30
     0                                                                   102.2
31
32
Number of snapshots: 86
33
 Detailed snapshots: [13, 34, 37 (peak), 40, 54, 64, 74, 84]
34
35
--------------------------------------------------------------------------------
36
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
37
--------------------------------------------------------------------------------
38
  0              0                0                0             0            0
39
  1        897,146          262,184          262,158            26            0
40
  2      1,688,527          262,184          262,158            26            0
41
  3      2,255,102          262,184          262,158            26            0
42
  4      2,662,437          262,208          262,171            37            0
43
  5      3,320,526          262,208          262,171            37            0
44
  6      3,915,288          262,184          262,158            26            0
45
  7      4,490,725          262,184          262,158            26            0
46
  8      4,879,244          262,208          262,171            37            0
47
  9      5,564,751          262,184          262,158            26            0
48
 10      6,117,928          262,184          262,158            26            0
49
 11      6,842,994          262,184          262,158            26            0
50
 12      7,498,388          262,184          262,158            26            0
51
 13      8,135,282          262,208          262,171            37            0
52
99.99% (262,171B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
53
->99.98% (262,145B) 0x404985: xmlgen_init (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
54
| ->99.98% (262,145B) 0x406095: Test (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
55
|   ->99.98% (262,145B) 0x5409A42: (below main) (in /lib64/libc-2.10.1.so)
56
|     
57
->00.01% (26B) in 1+ places, all below ms_print's threshold (01.00%)
58
59
--------------------------------------------------------------------------------
60
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
61
--------------------------------------------------------------------------------
62
 14      8,770,252          262,184          262,158            26            0
63
 15      9,230,318          262,184          262,158            26            0
64
 16      9,837,018          262,184          262,158            26            0
65
 17     10,254,153          262,184          262,158            26            0
66
 18     10,769,873          262,184          262,158            26            0
67
 19     11,197,741          262,184          262,158            26            0
68
 20     11,995,402          262,184          262,158            26            0
69
 21     12,585,391          262,184          262,158            26            0
70
 22     13,179,080          262,184          262,158            26            0
71
 23     13,618,908          262,184          262,158            26            0
72
 24     14,207,268          262,208          262,171            37            0
73
 25     15,082,015          262,184          262,158            26            0
74
 26     15,666,125          262,208          262,171            37            0
75
 27     16,246,299          262,184          262,158            26            0
76
 28     16,833,422          262,184          262,158            26            0
77
 29     17,414,124          262,184          262,158            26            0
78
 30     17,850,512          262,184          262,158            26            0
79
 31     18,588,938          262,184          262,158            26            0
80
 32     19,252,424          262,184          262,158            26            0
81
 33     20,143,238          262,184          262,158            26            0
82
 34     20,989,545          288,200          287,370           830            0
83
99.71% (287,370B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
84
->90.96% (262,145B) 0x404985: xmlgen_init (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
85
| ->90.96% (262,145B) 0x406095: Test (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
86
|   ->90.96% (262,145B) 0x5409A42: (below main) (in /lib64/libc-2.10.1.so)
87
|     
88
->03.03% (8,737B) in 40 places, all below massif's threshold (01.00%)
89
| 
90
->02.88% (8,296B) 0x4E78456: xmlBufferCreateSize (in /usr/lib64/libxml2.so.2.7.4)
91
| ->02.84% (8,194B) 0x4E82FB1: xmlAllocParserInputBuffer (in /usr/lib64/libxml2.so.2.7.4)
92
| | ->02.84% (8,194B) 0x4E5FAE9: xmlCreatePushParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
93
| |   ->02.84% (8,194B) 0x4F033A0: xmlNewTextReader (in /usr/lib64/libxml2.so.2.7.4)
94
| |     ->02.84% (8,194B) 0x4F036E0: xmlReaderForMemory (in /usr/lib64/libxml2.so.2.7.4)
95
| |       
96
| ->00.04% (102B) in 1+ places, all below ms_print's threshold (01.00%)
97
| 
98
->01.42% (4,096B) 0x4F14B3A: xmlDictCreate (in /usr/lib64/libxml2.so.2.7.4)
99
| ->01.42% (4,096B) 0x4E5B7A3: xmlInitParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
100
|   ->01.42% (4,096B) 0x4E5B81C: xmlNewParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
101
|     ->01.42% (4,096B) 0x4E5FAFA: xmlCreatePushParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
102
|       ->01.42% (4,096B) 0x4F033A0: xmlNewTextReader (in /usr/lib64/libxml2.so.2.7.4)
103
|         
104
->01.42% (4,096B) 0x4E7850C: xmlBufferCreate (in /usr/lib64/libxml2.so.2.7.4)
105
  ->01.42% (4,096B) 0x4E5B9A3: (within /usr/lib64/libxml2.so.2.7.4)
106
    ->01.42% (4,096B) 0x4E5BAE5: (within /usr/lib64/libxml2.so.2.7.4)
107
      ->01.42% (4,096B) 0x4E60B61: xmlParseEncodingDecl (in /usr/lib64/libxml2.so.2.7.4)
108
        ->01.42% (4,096B) 0x4E63685: xmlParseXMLDecl (in /usr/lib64/libxml2.so.2.7.4)
109
          
110
--------------------------------------------------------------------------------
111
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
112
--------------------------------------------------------------------------------
113
 35     21,625,338          296,752          295,687         1,065            0
114
 36     22,460,640          296,872          295,783         1,089            0
115
 37     53,767,523          296,872          295,783         1,089            0
116
99.63% (295,783B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
117
->88.30% (262,145B) 0x404985: xmlgen_init (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
118
| ->88.30% (262,145B) 0x406095: Test (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
119
|   ->88.30% (262,145B) 0x5409A42: (below main) (in /lib64/libc-2.10.1.so)
120
|     
121
->02.95% (8,767B) 0x4E75AE1: xmlBufferGrow (in /usr/lib64/libxml2.so.2.7.4)
122
| ->02.95% (8,767B) 0x4E57486: xmlCharEncInFunc (in /usr/lib64/libxml2.so.2.7.4)
123
|   ->02.95% (8,767B) 0x4E84B9D: xmlParserInputBufferPush (in /usr/lib64/libxml2.so.2.7.4)
124
|     ->02.95% (8,767B) 0x4E7288F: xmlParseChunk (in /usr/lib64/libxml2.so.2.7.4)
125
|       ->02.95% (8,767B) 0x4F039EC: (within /usr/lib64/libxml2.so.2.7.4)
126
|         
127
->02.79% (8,296B) 0x4E78456: xmlBufferCreateSize (in /usr/lib64/libxml2.so.2.7.4)
128
| ->02.76% (8,194B) 0x4E82FB1: xmlAllocParserInputBuffer (in /usr/lib64/libxml2.so.2.7.4)
129
| | ->02.76% (8,194B) 0x4E5FAE9: xmlCreatePushParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
130
| |   ->02.76% (8,194B) 0x4F033A0: xmlNewTextReader (in /usr/lib64/libxml2.so.2.7.4)
131
| |     ->02.76% (8,194B) 0x4F036E0: xmlReaderForMemory (in /usr/lib64/libxml2.so.2.7.4)
132
| |       
133
| ->00.03% (102B) in 1+ places, all below ms_print's threshold (01.00%)
134
| 
135
->01.98% (5,879B) in 39 places, all below massif's threshold (01.00%)
136
| 
137
->01.38% (4,096B) 0x4F14B3A: xmlDictCreate (in /usr/lib64/libxml2.so.2.7.4)
138
| ->01.38% (4,096B) 0x4E5B7A3: xmlInitParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
139
|   ->01.38% (4,096B) 0x4E5B81C: xmlNewParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
140
|     ->01.38% (4,096B) 0x4E5FAFA: xmlCreatePushParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
141
|       ->01.38% (4,096B) 0x4F033A0: xmlNewTextReader (in /usr/lib64/libxml2.so.2.7.4)
142
|         
143
->01.13% (3,360B) 0x4F1574F: (within /usr/lib64/libxml2.so.2.7.4)
144
| ->01.13% (3,360B) in 3 places, all below massif's threshold (01.00%)
145
|   
146
->01.09% (3,240B) 0x4E78B2C: xmlNewNodeEatName (in /usr/lib64/libxml2.so.2.7.4)
147
  ->01.09% (3,240B) 0x4E7DF6A: xmlNewDocNodeEatName (in /usr/lib64/libxml2.so.2.7.4)
148
    ->01.09% (3,240B) 0x4F169B3: xmlSAX2StartElementNs (in /usr/lib64/libxml2.so.2.7.4)
149
      ->01.09% (3,240B) 0x4EFF12A: (within /usr/lib64/libxml2.so.2.7.4)
150
        ->01.05% (3,120B) 0x4E6C024: (within /usr/lib64/libxml2.so.2.7.4)
151
        | 
152
        ->00.04% (120B) in 1+ places, all below ms_print's threshold (01.00%)
153
        
154
--------------------------------------------------------------------------------
155
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
156
--------------------------------------------------------------------------------
157
 38     54,434,268          263,296          263,084           212            0
158
 39     55,105,888          263,320          263,097           223            0
159
 40     55,994,301          263,296          263,084           212            0
160
99.92% (263,084B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
161
->99.56% (262,145B) 0x404985: xmlgen_init (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
162
| ->99.56% (262,145B) 0x406095: Test (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
163
|   ->99.56% (262,145B) 0x5409A42: (below main) (in /lib64/libc-2.10.1.so)
164
|     
165
->00.36% (939B) in 1+ places, all below ms_print's threshold (01.00%)
166
167
--------------------------------------------------------------------------------
168
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
169
--------------------------------------------------------------------------------
170
 41     56,666,907          263,296          263,084           212            0
171
 42     57,337,052          263,296          263,084           212            0
172
 43     58,009,107          263,296          263,084           212            0
173
 44     58,457,074          263,320          263,097           223            0
174
 45     59,351,936          263,296          263,084           212            0
175
 46     59,804,316          263,296          263,084           212            0
176
 47     60,256,270          263,296          263,084           212            0
177
 48     61,145,505          263,296          263,084           212            0
178
 49     61,594,457          263,296          263,084           212            0
179
 50     61,986,055          263,368          263,123           245            0
180
 51     62,376,668          263,296          263,084           212            0
181
 52     62,769,893          263,296          263,084           212            0
182
 53     63,159,134          263,296          263,084           212            0
183
 54     63,548,203          263,296          263,084           212            0
184
99.92% (263,084B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
185
->99.56% (262,145B) 0x404985: xmlgen_init (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
186
| ->99.56% (262,145B) 0x406095: Test (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
187
|   ->99.56% (262,145B) 0x5409A42: (below main) (in /lib64/libc-2.10.1.so)
188
|     
189
->00.36% (939B) in 1+ places, all below ms_print's threshold (01.00%)
190
191
--------------------------------------------------------------------------------
192
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
193
--------------------------------------------------------------------------------
194
 55     63,938,417          263,320          263,097           223            0
195
 56     64,330,959          263,296          263,084           212            0
196
 57     64,720,598          263,368          263,123           245            0
197
 58     65,114,434          263,296          263,084           212            0
198
 59     65,505,444          263,296          263,084           212            0
199
 60     65,897,789          263,296          263,084           212            0
200
 61     66,286,810          263,320          263,097           223            0
201
 62     66,678,963          263,296          263,084           212            0
202
 63     67,067,646          263,296          263,084           212            0
203
 64     67,457,410          263,320          263,097           223            0
204
99.92% (263,097B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
205
->99.55% (262,145B) 0x404985: xmlgen_init (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
206
| ->99.55% (262,145B) 0x406095: Test (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
207
|   ->99.55% (262,145B) 0x5409A42: (below main) (in /lib64/libc-2.10.1.so)
208
|     
209
->00.36% (952B) in 1+ places, all below ms_print's threshold (01.00%)
210
211
--------------------------------------------------------------------------------
212
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
213
--------------------------------------------------------------------------------
214
 65     67,849,366          263,296          263,084           212            0
215
 66     68,243,097          263,296          263,084           212            0
216
 67     68,631,806          263,296          263,084           212            0
217
 68     69,024,743          263,368          263,123           245            0
218
 69     69,414,814          263,320          263,097           223            0
219
 70     69,803,374          263,296          263,084           212            0
220
 71     70,194,919          263,296          263,084           212            0
221
 72     70,587,536          263,296          263,084           212            0
222
 73     70,980,083          263,296          263,084           212            0
223
 74     71,369,685          263,296          263,084           212            0
224
99.92% (263,084B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
225
->99.56% (262,145B) 0x404985: xmlgen_init (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
226
| ->99.56% (262,145B) 0x406095: Test (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
227
|   ->99.56% (262,145B) 0x5409A42: (below main) (in /lib64/libc-2.10.1.so)
228
|     
229
->00.36% (939B) in 1+ places, all below ms_print's threshold (01.00%)
230
231
--------------------------------------------------------------------------------
232
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
233
--------------------------------------------------------------------------------
234
 75     71,759,182          263,392          263,136           256            0
235
 76     72,151,184          263,296          263,084           212            0
236
 77     72,540,234          263,320          263,097           223            0
237
 78     72,929,198          263,296          263,084           212            0
238
 79     73,318,322          263,296          263,084           212            0
239
 80     73,706,963          263,344          263,110           234            0
240
 81     74,095,864          263,320          263,097           223            0
241
 82     74,584,307          291,696          290,656         1,040            0
242
 83     75,042,827          296,752          295,687         1,065            0
243
 84     95,882,195          296,856          295,783         1,073            0
244
99.64% (295,783B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
245
->88.31% (262,145B) 0x404985: xmlgen_init (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
246
| ->88.31% (262,145B) 0x406095: Test (in /home/csa/misc/bench/xmlbench/parse/libxml-pull)
247
|   ->88.31% (262,145B) 0x5409A42: (below main) (in /lib64/libc-2.10.1.so)
248
|     
249
->02.95% (8,767B) 0x4E75AE1: xmlBufferGrow (in /usr/lib64/libxml2.so.2.7.4)
250
| ->02.95% (8,767B) 0x4E57486: xmlCharEncInFunc (in /usr/lib64/libxml2.so.2.7.4)
251
|   ->02.95% (8,767B) 0x4E84B9D: xmlParserInputBufferPush (in /usr/lib64/libxml2.so.2.7.4)
252
|     ->02.95% (8,767B) 0x4E7288F: xmlParseChunk (in /usr/lib64/libxml2.so.2.7.4)
253
|       ->02.95% (8,767B) 0x4F039EC: (within /usr/lib64/libxml2.so.2.7.4)
254
|         
255
->02.79% (8,296B) 0x4E78456: xmlBufferCreateSize (in /usr/lib64/libxml2.so.2.7.4)
256
| ->02.76% (8,194B) 0x4E82FB1: xmlAllocParserInputBuffer (in /usr/lib64/libxml2.so.2.7.4)
257
| | ->02.76% (8,194B) 0x4E5FAE9: xmlCreatePushParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
258
| |   ->02.76% (8,194B) 0x4F033A0: xmlNewTextReader (in /usr/lib64/libxml2.so.2.7.4)
259
| |     ->02.76% (8,194B) 0x4F036E0: xmlReaderForMemory (in /usr/lib64/libxml2.so.2.7.4)
260
| |       
261
| ->00.03% (102B) in 1+ places, all below ms_print's threshold (01.00%)
262
| 
263
->01.98% (5,879B) in 39 places, all below massif's threshold (01.00%)
264
| 
265
->01.38% (4,096B) 0x4F14B3A: xmlDictCreate (in /usr/lib64/libxml2.so.2.7.4)
266
| ->01.38% (4,096B) 0x4E5B7A3: xmlInitParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
267
|   ->01.38% (4,096B) 0x4E5B81C: xmlNewParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
268
|     ->01.38% (4,096B) 0x4E5FAFA: xmlCreatePushParserCtxt (in /usr/lib64/libxml2.so.2.7.4)
269
|       ->01.38% (4,096B) 0x4F033A0: xmlNewTextReader (in /usr/lib64/libxml2.so.2.7.4)
270
|         
271
->01.13% (3,360B) 0x4F1574F: (within /usr/lib64/libxml2.so.2.7.4)
272
| ->01.13% (3,360B) in 3 places, all below massif's threshold (01.00%)
273
|   
274
->01.09% (3,240B) 0x4E78B2C: xmlNewNodeEatName (in /usr/lib64/libxml2.so.2.7.4)
275
  ->01.09% (3,240B) 0x4E7DF6A: xmlNewDocNodeEatName (in /usr/lib64/libxml2.so.2.7.4)
276
    ->01.09% (3,240B) 0x4F169B3: xmlSAX2StartElementNs (in /usr/lib64/libxml2.so.2.7.4)
277
      ->01.09% (3,240B) 0x4EFF12A: (within /usr/lib64/libxml2.so.2.7.4)
278
        ->01.05% (3,120B) 0x4E6C024: (within /usr/lib64/libxml2.so.2.7.4)
279
        | 
280
        ->00.04% (120B) in 1+ places, all below ms_print's threshold (01.00%)
281
        
282
--------------------------------------------------------------------------------
283
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
284
--------------------------------------------------------------------------------
285
 85    107,169,854          296,816          295,756         1,060            0