Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ maturin build --release

## Benchmark

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.
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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The README states that the benchmark suite is driven by pytest-benchmark, but the PR title and the implementation in bench/benchmark.py indicate a migration to pyperf. This description should be updated to reflect the correct tool to avoid confusion for users.


## Services

Expand Down
38 changes: 3 additions & 35 deletions bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,13 @@

benchmark between wreq and other python http clients


Machine
------

```log
..' MacBook
,xNMM. ----------------
.OMMMMo OS: macOS Sequoia 15.7.1 arm64
lMM" Host: MacBook Pro (16-inch, Nov 2023, Three Thunderbolt 4)
.;loddo:. .olloddol;. Kernel: Darwin 24.6.0
cKMMMMMMMMMMNWMMMMMMMMMM0: Uptime: 300 days, 18 hours, 5 mins
.KMMMMMMMMMMMMMMMMMMMMMMMWd. Packages: 117 (brew), 11 (brew-cask)
XMMMMMMMMMMMMMMMMMMMMMMMX. Shell: zsh 5.9
;MMMMMMMMMMMMMMMMMMMMMMMM: Display (Color LCD): 3456x2234 @ 120 Hz (as 1728x1117) in]
:MMMMMMMMMMMMMMMMMMMMMMMM: DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX. WM: Quartz Compositor
kMMMMMMMMMMMMMMMMMMMMMMMMWd. WM Theme: Blue (Dark)
'XMMMMMMMMMMMMMMMMMMMMMMMMMMk Font: .AppleSystemUIFont [System], Helvetica [User]
'XMMMMMMMMMMMMMMMMMMMMMMMMK. Cursor: Fill - Black, Outline - White (32px)
kMMMMMMMMMMMMMMMMMMMMMMd Terminal: iTerm 3.6.4
;KMMMMMMMWXXWMMMMMMMk. Terminal Font: MesloLGS-NF-Regular (14pt)
"cooc*" "*coo'" CPU: Apple M3 Max (16) @ 4.06 GHz
GPU: Apple M3 Max (40) @ 1.38 GHz [Integrated]
Memory: 41.12 GiB / 128.00 GiB (32%)
Swap: Disabled
Local IP (en0): 192.168.1.172/24
Battery: 75% [AC connected]
Power Adapter: 140W USB-C Power Adapter
Locale: en_US.UTF-8
```

Sync clients
------

- curl_cffi
- requests
- niquests
- pycurl
- [python-tls-client](https://github.com/FlorianREGAZ/Python-Tls-Client.git)
- httpx
- wreq
- ry
Expand All @@ -64,12 +32,12 @@ All the clients run with session/client enabled.
## Run benchmark

```bash
# Install dependencies
pip install -r requirements.txt
# Install project + benchmark dependencies
pip install -e .[bench]

# Start server
python server.py

# Start benchmark
# Run benchmark suite
python benchmark.py
```
Loading
Loading