Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shnatsel/rust-http-clients-smoke-test
https://github.com/shnatsel/rust-http-clients-smoke-test
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shnatsel/rust-http-clients-smoke-test
- Owner: Shnatsel
- License: apache-2.0
- Created: 2021-02-03T14:04:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-03T14:04:34.000Z (over 3 years ago)
- Last Synced: 2024-10-16T05:54:34.957Z (about 1 month ago)
- Language: Rust
- Size: 116 KB
- Stars: 48
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# rust-http-clients-smoke-test
To build with Address Sanitizer, run
```bash
env RUSTFLAGS="-Z sanitizer=address" cargo +nightly build --target x86_64-unknown-linux-gnu --release
```To build with debug assertions and overflow checks, run
```bash
env RUSTFLAGS="-C debug-assertions -C overflow-checks" cargo build --release
```To build with all of the above, run
```
env RUSTFLAGS="-Z sanitizer=address -C debug-assertions -C overflow-checks" cargo +nightly build --target x86_64-unknown-linux-gnu --release
```Run the test for an individual client with:
```
mkdir success failure
cut -d , -f 2 ~/top-1m.csv | grep --only-matching -E '[a-zA-Z0-9.-]+' | parallel -j 50 ~/rust-http-clients-smoke-test/fetch-one-url.sh "$PATH_TO_BINARY_UNDER_TEST"
```