Skip to content

Commit 5fce897

Browse files
committed
bench(python): use pyperf strict mode over custom logic
1 parent ae2224e commit 5fce897

File tree

6 files changed

+429
-686
lines changed

6 files changed

+429
-686
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ maturin build --release
107107

108108
## Benchmark
109109

110-
Outperforms `requests`, `httpx`, `aiohttp`, and `curl_cffi`, and you can see the [benchmark](https://github.com/0x676e67/wreq-python/tree/main/bench) for details benchmark data is for reference only and actual performance may vary based on your environment and use case.
110+
Outperforms `requests`, `httpx`, `aiohttp`, and `curl_cffi`, and you can see the [benchmark](https://github.com/0x676e67/wreq-python/tree/main/bench) for details. The benchmark suite is driven by `pytest-benchmark`, and results are still for reference only because network and system conditions affect outcomes.
111111

112112
## Services
113113

bench/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Sync clients
4040
- requests
4141
- niquests
4242
- pycurl
43-
- [python-tls-client](https://github.com/FlorianREGAZ/Python-Tls-Client.git)
4443
- httpx
4544
- wreq
4645
- ry
@@ -64,12 +63,12 @@ All the clients run with session/client enabled.
6463
## Run benchmark
6564

6665
```bash
67-
# Install dependencies
68-
pip install -r requirements.txt
66+
# Install project + benchmark dependencies
67+
pip install -e .[bench]
6968

7069
# Start server
7170
python server.py
7271

73-
# Start benchmark
72+
# Run benchmark suite
7473
python benchmark.py
75-
```
74+
```

0 commit comments

Comments
 (0)