Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added more.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: dce94477ff809063fd3a60cc1e726bc83edfeacb6f8b8db6d78d4e7b4eac09e7
User & Date: rolf 2019-07-20 01:25:57
Context
2019-08-06
23:35
Removed cruft for versions not supported anymore. check-in: 0117b3be8d user: rolf tags: trunk
2019-07-20
01:25
Added more. check-in: dce94477ff user: rolf tags: trunk
2019-07-19
23:49
Added test cases. check-in: afbf750fd4 user: rolf tags: trunk
Changes

Changes to tests/xpath.bench.

89
90
91
92
93
94
95

96
97



















98
99
100
101
102
103
104
        dom createDocument root doc
        $doc documentElement root
        $root appendFromScript {
            for {set x 0} {$x < $nrOf} {incr x} {
                e1
            }
        }

    } -body {
        $root selectNodes string(e1)



















    } -post {
        $doc delete
    }

}

dom createNodeCmd elementNode e2







>

|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
        dom createDocument root doc
        $doc documentElement root
        $root appendFromScript {
            for {set x 0} {$x < $nrOf} {incr x} {
                e1
            }
        }
        $root selectNodes -cache 1 string(e1)
    } -body {
        $root selectNodes -cache 1 string(e1)
    } -post {
        $doc delete
    }

}

foreach nrOf {1 10 50 100} {

    bench -desc "count(<nodeset with $nrOf nodes>)" -pre {
        dom createDocument root doc
        $doc documentElement root
        $root appendFromScript {
            for {set x 0} {$x < $nrOf} {incr x} {
                e1
            }
        }
        $root selectNodes -cache 1 count(e1)
    } -body {
        $root selectNodes -cache 1 count(e1)
    } -post {
        $doc delete
    }

}

dom createNodeCmd elementNode e2