perf-1.tcl
Go to the documentation of this file.00001
00002
00003 childNum = 50
00004 catch { childNum = $numChildren}
00005 testNum = 10
00006 catch { testNum = $numTests}
00007
00008 time {
00009 doc = [dom::DOMImplementation create]
00010 top = [dom::document createElement $doc Test]
00011 for { i = 0} {$i < $childNum} {incr i} {
00012 child = [dom::document createElement $top Top]
00013 for { j = 0} {$j < $childNum} {incr j} {
00014 dom::document createElement $child Child
00015 }
00016 }
00017 } $testNum
00018
00019