Skip to content

Commit

Permalink
Merge branch 'master' of github.com:vorner/arc-swap
Browse files Browse the repository at this point in the history
  • Loading branch information
vorner committed Jan 8, 2022
2 parents d0d296d + d82b9e1 commit cc90e97
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
on:
pull_request:
# For some reason, this fails due to some permissions.
# pull_request:
push:
branches:
- master
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,36 @@ jobs:
PROPTEST_CASES: "10"
MIRIFLAGS: "-Zmiri-disable-isolation"
run: cargo miri test --all-features

thread_sanitizer-MacOS:
name: Thread Sanitizer checks MacOS
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ github.event.repository.name }}-${{ runner.os }}-cargo-thread_sanitizer-v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-src
- name: Run thread sanitizer
run: |
# Thread sanitizer isn't guaranteed to catch all data races, it can only catch it
# the data race if it happens when running the program.
#
# Running the tests multiple times increase the chances that data races are found
# by the thread sanitizer.
for _ in $(seq 1 10); do cargo +nightly test -Z build-std --target --target $(uname -m)-apple-darwin; done
env:
RUSTDOCFLAGS: "-Zsanitizer=thread"
RUSTFLAGS: "-Zsanitizer=thread"

1 comment on commit cc90e97

@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: cc90e97 Previous: d82b9e1 Ratio
uncontended/load 21 ns/iter (± 1) 20 ns/iter (± 1) 1.05
uncontended/load_full 38 ns/iter (± 2) 34 ns/iter (± 1) 1.12
uncontended/load_many 48 ns/iter (± 7) 44 ns/iter (± 1) 1.09
uncontended/store 148 ns/iter (± 9) 141 ns/iter (± 5) 1.05
uncontended/cache 0 ns/iter (± 0) 0 ns/iter (± 0) NaN
concurrent_loads/load 30 ns/iter (± 10) 29 ns/iter (± 11) 1.03
concurrent_loads/load_full 55 ns/iter (± 49) 48 ns/iter (± 19) 1.15
concurrent_loads/load_many 68 ns/iter (± 24) 54 ns/iter (± 38) 1.26
concurrent_loads/store 895 ns/iter (± 390) 1057 ns/iter (± 363) 0.85
concurrent_loads/cache 0 ns/iter (± 0) 1 ns/iter (± 0) 0
concurrent_store/load 94 ns/iter (± 13) 77 ns/iter (± 7) 1.22
concurrent_store/load_full 121 ns/iter (± 7) 115 ns/iter (± 7) 1.05
concurrent_store/load_many 164 ns/iter (± 10) 146 ns/iter (± 9) 1.12
concurrent_store/store 1202 ns/iter (± 84) 1067 ns/iter (± 44) 1.13
concurrent_store/cache 1 ns/iter (± 0) 1 ns/iter (± 0) 1

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

Please sign in to comment.