summaryrefslogtreecommitdiffstats
path: root/xml/dom/ext/reader/test_suite/Benchmark.py
blob: cb2f7022c2ff6600251aa3710773abc029da0dda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from xml.dom.ext.reader import Sax2

def Benchmark(fileName):

    return Sax2.FromXmlFile(fileName)




if __name__ == '__main__':

    import time,sys
    sTime = time.time()
    d = Benchmark(sys.argv[1])
    print "Total Time: %f" % (time.time() - sTime)


    from xml.dom import ext
    ext.Print(d)