Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
```