Skip to content

Commit 06561b7

Browse files
committed
update benchmarks, fix readme typo
1 parent b8b0b50 commit 06561b7

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ cdata("hello > < ' \" I have odd characters")
7878
```
7979

8080
### `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.
8282

8383

8484
### `XML.RawData`

benchmarks/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
33
EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
44
XML = "72c71f33-b9b6-44de-8c94-c961784809e2"
5+
XMLDict = "228000da-037f-5747-90a9-8195ccbf91a5"

benchmarks/suite.jl

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
using XML: XML
22
using EzXML: EzXML
3+
using XMLDict: XMLDict
34
using BenchmarkTools
45

56

67
file = download("http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd")
78
filename = tempname()
89

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))
1215

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))

0 commit comments

Comments
 (0)