Skip to content

Commit 0febc2b

Browse files
authored
Merge pull request #407 from dralley/benchmarks
Improve benchmark suite
2 parents f6d5e99 + 84b2f3d commit 0febc2b

File tree

16 files changed

+2152
-357
lines changed

16 files changed

+2152
-357
lines changed

.github/workflows/rust.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ name: Rust
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Check fmt
11+
run: cargo fmt -- --check
12+
13+
test:
714
strategy:
815
matrix:
916
platform: [ubuntu-latest, windows-latest]
@@ -15,20 +22,24 @@ jobs:
1522
RUSTFLAGS: -C instrument-coverage
1623

1724
steps:
25+
- uses: actions/checkout@v3
1826
- name: Install coverage reporter (llvm-tools-preview)
1927
if: runner.os == 'Linux'
2028
run: rustup component add llvm-tools-preview
2129
- name: Install coverage reporter (grcov)
2230
if: runner.os == 'Linux'
2331
run: cargo install grcov
24-
- uses: actions/checkout@v1
32+
2533
- name: Build
2634
run: cargo build
2735
- name: Build benchmarks
2836
run: cargo bench --no-run
2937
- name: Build benchmarks (compare)
3038
working-directory: compare
3139
run: cargo bench --no-run
40+
- name: Run tests + benchmarks
41+
run: cargo test --all-features --benches --tests
42+
3243
- name: Run tests (no features)
3344
env:
3445
LLVM_PROFILE_FILE: coverage/no-features-%p-%m.profraw
@@ -67,6 +78,4 @@ jobs:
6778
flags: unittests
6879
verbose: true
6980
continue-on-error: true
70-
- name: Check fmt
71-
run: cargo fmt -- --check
7281

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
- [#393]: Added more tests for namespace resolver
104104
- [#393]: Added tests for reserved names (started with "xml"i) -- see <https://www.w3.org/TR/xml-names11/#xmlReserved>
105105
- [#363]: Add tests for `Reader::read_event_buffered` to ensure that proper events generated for corresponding inputs
106+
- [#407]: Improved benchmark suite to cover whole-document parsing, escaping and unescaping text
106107

107108
[#8]: https://github.com/Mingun/fast-xml/pull/8
108109
[#9]: https://github.com/Mingun/fast-xml/pull/9
@@ -115,6 +116,7 @@
115116
[#393]: https://github.com/tafia/quick-xml/pull/393
116117
[#395]: https://github.com/tafia/quick-xml/pull/395
117118
[#403]: https://github.com/tafia/quick-xml/pull/403
119+
[#407]: https://github.com/tafia/quick-xml/pull/407
118120

119121
## 0.23.0 -- 2022-05-08
120122

0 commit comments

Comments
 (0)