/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 create/oracle-dom.c

  • Committer: Suren A. Chilingaryan
  • Date: 2009-09-23 17:13:04 UTC
  • Revision ID: csa@dside.dyndns.org-20090923171304-osvtr4zqb29h11kd
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        exit(1);
34
34
    }
35
35
    dom = getImplementation(ctx);
36
 
    mem = malloc(memsize);
 
36
 
 
37
    if (!td->memory_bench) {
 
38
        mem = malloc(memsize);
 
39
    }
37
40
}
38
41
 
39
42
void releaseXML(struct TestData *td) {
40
 
    free(mem);
 
43
    if (!td->memory_bench) {
 
44
        free(mem);
 
45
    }
41
46
    xmlterm(ctx);
42
47
}
43
48
 
140
145
        appendChild(ctx,node1,createTextNode(ctx,str[i]));
141
146
    }
142
147
 
143
 
    printBuffer(mem,memsize,doc,0,0);
 
148
    if (!td->memory_bench) {
 
149
        printBuffer(mem,memsize,doc,0,0);
144
150
    
145
 
//    if (iter==td->iterations) puts(mem);
 
151
//      if (iter==td->iterations) puts(mem);
 
152
    }
146
153
 
147
154
//      xmlclean(ctx);
148
155
    xmlterm(ctx);