1.1 --- a/tests/performance.py Mon Jan 24 10:36:41 2005 +0000
1.2 +++ b/tests/performance.py Mon Jan 24 10:37:17 2005 +0000
1.3 @@ -36,7 +36,7 @@
1.4
1.5 t = time.time()
1.6 x2_d1, x2_d2 = macrotest.test_import(x2_d)
1.7 - macrotest.toFile(x2_d, "/tmp/xxx_macrotest.xml")
1.8 + macrotest.toFile(x2_d2, "/tmp/xxx_macrotest.xml")
1.9 print "Time", time.time() - t, "seconds"
1.10
1.11 elif sys.argv[2] == "minidom":
1.12 @@ -45,7 +45,7 @@
1.13
1.14 t = time.time()
1.15 d1, d2 = test_import(d)
1.16 - open("/tmp/xxx_minidom.xml", "wb").write(d1.toxml("utf-8"))
1.17 + open("/tmp/xxx_minidom.xml", "wb").write(d2.toxml("utf-8"))
1.18 print "Time", time.time() - t, "seconds"
1.19
1.20 elif sys.argv[2] == "libxml2dom":
1.21 @@ -54,7 +54,7 @@
1.22
1.23 t = time.time()
1.24 d1, d2 = test_import2(d)
1.25 - libxml2dom.toStream(d1, open("/tmp/xxx_libxml2dom.xml", "wb"))
1.26 + libxml2dom.toStream(d2, open("/tmp/xxx_libxml2dom.xml", "wb"))
1.27 print "Time", time.time() - t, "seconds"
1.28
1.29 # vim: tabstop=4 expandtab shiftwidth=4