Skip to content

Commit

Permalink
Merge pull request tafia#407 from dralley/benchmarks
Browse files Browse the repository at this point in the history
Improve benchmark suite
  • Loading branch information
dralley committed Jun 29, 2022
2 parents f6d5e99 + 84b2f3d commit 0febc2b
Show file tree
Hide file tree
Showing 16 changed files with 2,152 additions and 357 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ name: Rust
on: [push, pull_request]

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check fmt
run: cargo fmt -- --check

test:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
Expand All @@ -15,20 +22,24 @@ jobs:
RUSTFLAGS: -C instrument-coverage

steps:
- uses: actions/checkout@v3
- name: Install coverage reporter (llvm-tools-preview)
if: runner.os == 'Linux'
run: rustup component add llvm-tools-preview
- name: Install coverage reporter (grcov)
if: runner.os == 'Linux'
run: cargo install grcov
- uses: actions/checkout@v1

- name: Build
run: cargo build
- name: Build benchmarks
run: cargo bench --no-run
- name: Build benchmarks (compare)
working-directory: compare
run: cargo bench --no-run
- name: Run tests + benchmarks
run: cargo test --all-features --benches --tests

- name: Run tests (no features)
env:
LLVM_PROFILE_FILE: coverage/no-features-%p-%m.profraw
Expand Down Expand Up @@ -67,6 +78,4 @@ jobs:
flags: unittests
verbose: true
continue-on-error: true
- name: Check fmt
run: cargo fmt -- --check

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

[#8]: https://github.com/Mingun/fast-xml/pull/8
[#9]: https://github.com/Mingun/fast-xml/pull/9
Expand All @@ -115,6 +116,7 @@
[#393]: https://github.com/tafia/quick-xml/pull/393
[#395]: https://github.com/tafia/quick-xml/pull/395
[#403]: https://github.com/tafia/quick-xml/pull/403
[#407]: https://github.com/tafia/quick-xml/pull/407

## 0.23.0 -- 2022-05-08

Expand Down

0 comments on commit 0febc2b

Please sign in to comment.