Skip to content

Commit

Permalink
Merge pull request #44 from vorner/exp2
Browse files Browse the repository at this point in the history
Experiments
  • Loading branch information
vorner committed Nov 25, 2020
2 parents 61994b3 + 743933c commit b5ec44c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 35 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/coverage.yaml
@@ -0,0 +1,47 @@
name: Test coverage

on:
push:
branches:
- master
pull_request:

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
default: true

- name: Restore cache
uses: Swatinem/rust-cache@v1

- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
args: '--all-features --run-types Doctests,Tests'
timeout: 120

- name: Upload to codecov.io
uses: codecov/codecov-action@239febf655bba88b16ff5dea1d3135ea8663a1f9
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: cobertura.xml
retention-days: 30
35 changes: 0 additions & 35 deletions .github/workflows/test.yaml
Expand Up @@ -83,41 +83,6 @@ jobs:
- name: Check links
run: cargo rustdoc --all-features -- -D warnings

coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
default: true

- name: Restore cache
uses: Swatinem/rust-cache@v1

- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
args: '--all-features --run-types Doctests,Tests'
timeout: 120

- name: Upload to codecov.io
uses: codecov/codecov-action@239febf655bba88b16ff5dea1d3135ea8663a1f9
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: cobertura.xml
retention-days: 30

clippy:
name: Clippy lints
runs-on: ubuntu-latest
Expand Down

1 comment on commit b5ec44c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Track benchmarks

Benchmark suite Current: b5ec44c Previous: 6e689b3 Ratio
uncontended/load 22 ns/iter (± 0) 22 ns/iter (± 0) 1
uncontended/load_full 35 ns/iter (± 0) 36 ns/iter (± 1) 0.97
uncontended/load_many 2582 ns/iter (± 28) 2603 ns/iter (± 135) 0.99
uncontended/store 136 ns/iter (± 3) 139 ns/iter (± 0) 0.98
concurrent_loads/load 23 ns/iter (± 13) 24 ns/iter (± 14) 0.96
concurrent_loads/load_full 35 ns/iter (± 20) 40 ns/iter (± 17) 0.88
concurrent_loads/load_many 3891 ns/iter (± 1487) 2648 ns/iter (± 1255) 1.47
concurrent_loads/store 1068 ns/iter (± 339) 1349 ns/iter (± 434) 0.79
concurrent_store/load 110 ns/iter (± 7) 103 ns/iter (± 7) 1.07
concurrent_store/load_full 193 ns/iter (± 12) 157 ns/iter (± 4) 1.23
concurrent_store/load_many 7175 ns/iter (± 118) 6945 ns/iter (± 128) 1.03
concurrent_store/store 1305 ns/iter (± 149) 1399 ns/iter (± 179) 0.93

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.