/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/phobos-dom.d

  • 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:
 
1
module phobos_dom;
 
2
 
 
3
import std.stdio;
 
4
import std.xml;
 
5
 
 
6
import tools;
 
7
 
 
8
extern(C) void initXML(TestData *td) {
 
9
}
 
10
 
 
11
extern(C) void releaseXML(TestData *td) {
 
12
}
 
13
 
 
14
 
 
15
extern(C) void parseXML(TestData *td, ulong iter) {
 
16
    string str = std.conv.to!string(td.xml);
 
17
    check(str);
 
18
    Document doc = new Document(str);
 
19
//    writeln(doc);
 
20
}
 
21
 
 
22
void main(char[][] args)
 
23
{
 
24
    DTest(args);
 
25
}