/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk

« back to all changes in this revision

Viewing changes to parse/tools.h

  • Committer: Suren A. Chilingaryan
  • Date: 2009-09-28 21:25:28 UTC
  • Revision ID: csa@dside.dyndns.org-20090928212528-e6oby5he4yrueskz
Parsing tests for mono, vtd-xml, lisp, scripting languages

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
void initXML(struct TestData *td);
60
60
void releaseXML(struct TestData *td);
61
61
void parseXML(struct TestData *td, unsigned long iter);
 
62
void preparseXML(struct TestData *td, unsigned long iter);
 
63
void postparseXML(struct TestData *td, unsigned long iter);
 
64
 
62
65
 
63
66
void Usage(char *myname) {
64
67
 
170
173
        fclose(f);
171
174
#endif
172
175
 
 
176
#ifdef PREPARE_XML
 
177
    if (execute_xml) preparseXML(&td, 0);
 
178
#endif /* preparseXML */
173
179
    gettimeofday(&pre_time,NULL);
174
180
    if (execute_xml) parseXML(&td,0);
175
181
    gettimeofday(&post_time,NULL);
 
182
#ifdef PREPARE_XML
 
183
    if (execute_xml) postparseXML(&td, 0);
 
184
#endif /* postparseXML */
176
185
    init_time2=(post_time.tv_sec-pre_time.tv_sec)*1000000+(post_time.tv_usec-pre_time.tv_usec);
177
186
        
178
187
    disp_init();
209
218
        fclose(f);
210
219
#endif
211
220
        
 
221
#ifdef PREPARE_XML
 
222
    if (execute_xml) preparseXML(&td, i);
 
223
#endif /* preparseXML */
212
224
        gettimeofday(&pre_time,NULL);
213
225
        if (execute_xml) parseXML(&td,i);
214
226
        gettimeofday(&post_time,NULL);
 
227
#ifdef PREPARE_XML
 
228
    if (execute_xml) postparseXML(&td, i);
 
229
#endif /* postparseXML */
215
230
        time=(post_time.tv_sec-pre_time.tv_sec)*1000000+(post_time.tv_usec-pre_time.tv_usec);
216
231
        disp_event(time);
 
232
 
 
233
 
217
234
//      printf("%lu\n",time);
218
235
    }
219
236
    disp_post();