Skip to content

Commit dff848a

Browse files
committed
perf: Add new perf and boot results to PERFORMANCE.md
1 parent 0360a8e commit dff848a

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

PERFORMANCE.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,22 @@ We implemented `__slots__` across the core `Client`, `Config`, and `Endpoint` cl
2525

2626
______________________________________________________________________
2727

28-
## Benchmarks (v1.5.1 vs. v1.6.0 Refactor)
28+
## Benchmarks
29+
30+
### v1.6.0 vs. v1.7.0
31+
32+
We deliberately traded a fractional increase in execution time to introduce robust OWASP security guardrails (SSRF prevention, Header Injection checks) and Smart Telemetry, while maintaining lightning-fast baseline performance.
33+
34+
| Metric | v1.6.0 (Baseline) | v1.7.0 (Current) | Impact Context |
35+
| :----------------------- | :---------------- | :-------------------- | :-------------------- |
36+
| **Routing Speed (Mean)** | ~0.15 µs (157 ns) | **~0.23 µs (234 ns)** | *+77 ns (Guardrails)* |
37+
| **Request Cycle (Mean)** | ~219 µs | **~312 µs** | *+93 µs (Telemetry)* |
38+
| **Routing Ops/Sec** | ~6,339 Kops/s | **~4,261 Kops/s** | *Extremely Fast* |
39+
| **Cold-Boot Init Time** | ~0.078 s | **~0.089 s** | *+11 ms* |
40+
41+
*Note: Benchmarks measure network-isolated internal overhead using mocked `responses`. Testing hardware: Darwin-CPython-3.12-64bit.*
42+
43+
### v1.5.1 vs. v1.6.0 Refactor
2944

3045
Our internal `pytest-benchmark` and `cProfile` suites verify these architectural gains on Python 3.14. Despite adding heavy OWASP security guardrails (PEP 578 Audit Hooks, SSRF prevention, Regex validation), the memory optimizations yielded a net performance increase.
3146

mailjet_rest/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.6.0.post1.dev4"
1+
__version__ = "1.6.0.post1.dev18"

0 commit comments

Comments
 (0)