File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ cdata("hello > < ' \" I have odd characters")
78
78
```
79
79
80
80
### ` XML.RowNode `
81
- - A data structure that can used as a * Tables.jl* source. It is only lazy in how it access its children.
81
+ - A data structure that can used as a * Tables.jl* source. It is only lazy in how it accesses its children.
82
82
83
83
84
84
### ` XML.RawData `
Original file line number Diff line number Diff line change 2
2
BenchmarkTools = " 6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
3
3
EzXML = " 8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
4
4
XML = " 72c71f33-b9b6-44de-8c94-c961784809e2"
5
+ XMLDict = " 228000da-037f-5747-90a9-8195ccbf91a5"
Original file line number Diff line number Diff line change 1
1
using XML: XML
2
2
using EzXML: EzXML
3
+ using XMLDict: XMLDict
3
4
using BenchmarkTools
4
5
5
6
6
7
file = download (" http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd" )
7
8
filename = tempname ()
8
9
9
- # -----------------------------------------------------------------------------# read
10
- @info " XML lazy read" @benchmark XML. RawData ($ file)
11
- @info " XML read" @benchmark Node ($ file)
10
+ # -----------------------------------------------------------------------------# Read
11
+ @info " XML.Node" @benchmark Node ($ file)
12
+ @info " XML.RowNode" @benchmark XML. RowNode ($ file)
13
+ @info " EzXML.readxml" @benchmark EzXML. readxml ($ file)
14
+ @info " XMLDict.xml_dict" @benchmark XMLDict. xml_dict (read ($ file, String))
12
15
13
- @info " EzXML read" @benchmark EzXML. readxml ($ file)
16
+ # -----------------------------------------------------------------------------# Iteration
17
+ @info " XML.RawData iteration" @benchmark (for x in XML. RawData ($ file); end )
18
+ @info " XML.RowNode iteration" @benchmark (for x in XML. RowNode ($ file); end )
19
+
20
+ @info " EzXML.StreamReader" @benchmark (reader = open (EzXML. StreamReader, $ file); for x in reader; end ; close (reader))
You can’t perform that action at this time.
0 commit comments