You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialization accounts for ~50% under large payloads, but in real LLM requests (3-10s) it accounts for <0.1%, not worth optimizing.
4. Notes on Comparison Targets
Comparison
Multiple
Apples-to-apples
Notes
vs OpenAI Node SDK
14.7x
✅ apples-to-apples
Both are HTTP + JSON, no orchestration layer
vs OpenAI Python SDK
7.5x
✅ apples-to-apples
Same as above
vs Vercel AI SDK
11.1x
❌ not apples-to-apples
AISDK includes zod validation/middleware/telemetry, 11x is inflated
Vercel AI SDK does extra work per request: Zod schema validation, building a typed object tree, fetch middleware pipeline, telemetry recording. These accumulate in the V8 heap, causing memory bloat. aimux does none of these — the design goal is a lightweight access layer, not orchestration.
5. Cross-Language Comparison
Metric
Node.js (napi)
Python (PyO3)
aimux single request
0.101ms
0.080ms
aimux RSS (2000 req)
+2MB
+0MB
Source of advantage
Rust reqwest + connection pool
Same as left + PyO3 FFI is lighter
Python aimux is faster than Node aimux — PyO3 calls Rust directly at the C API layer (nearly zero-overhead C function calls), while napi has to go through V8's napi_env/napi_value wrappers. Python's reference counting is also more memory-stable than V8 GC.
6. Conclusion
aimux is the absolute leader on both sides: Node 14.7x, Python 7.5x
Zero memory growth: Python aimux RSS did not grow by a single byte after 2000 requests; Node +2MB
GC pauses: aimux has no GC, P99 tail jitter does not change under CPU constraints; AISDK's P99 spikes to 12.87ms on 1 core
Serialization is not the bottleneck: in real LLM requests (3-10s), serialization overhead accounts for <0.1%
Lightweight is the design goal: aimux does no orchestration/schema validation/middleware/telemetry, only the access layer — this is part of the source of the performance advantage, and also the product positioning