AADC delivers the best combination of fast compilation and fast execution for Monte Carlo Greeks computation.
With 48ms compilation time (vs 12.5s for JAX XLA), AADC is ideal for real-time pricing where trade structures change frequently.
All benchmarks are transparent, reproducible, and verifiable.
First-run performance matters. JAX is fast after warm-up, but 12.5s compilation makes it unsuitable for dynamic trade structures.
JAX XLA takes 12.5 seconds to compile. TensorFlow takes 18 seconds. This happens every time trade parameters change.
AADC compiles in 48 milliseconds. Combined with fast execution, total time is 4.2 seconds vs 16.2 seconds for JAX.
Lower is better. Compilation time shown in lighter shade.
Time to JIT compile / trace the computational graph
Greeks computation after compilation warm-up
Additional cost to compute Delta, Rho, Vega beyond price-only
Single adjoint pass computes all sensitivities simultaneously.
Requires 4× full pricing (base + bump for each Greek).
Fast AND simple
Fast after warm-up
Simple but slow
Valuation graphs in derivatives pricing are significantly larger and more complex than typical ML models. A single exotic trade may generate millions of operations in the computational graph. JAX XLA and TensorFlow's compilation passes scale poorly with graph size, resulting in 12-18 second compilation times that repeat whenever trade parameters change.
In production environments where traders need real-time pricing for RFQs, intraday risk recalculation, or dynamic hedging, this compilation overhead makes JAX/TensorFlow impractical for production deployment. AADC's 48ms compilation enables responsive pricing even with changing trade structures.
| Tool | Compile (ms) | Price Only (ms) | Greeks (ms) | Overhead | Total (ms) | Memory (MB) | LOC |
|---|---|---|---|---|---|---|---|
| AADC C++ | 35 | 620 | 820 | +32% | 855 | 8 | 950 |
| AADC Python | 48 | 3,200 | 4,200 | +31% | 4,248 | 12 | 822 |
| C++ (FD) | 0 | 850 | 4,950 | +482% | 4,950 | 180 | 1219 |
| PyTorch | 850 | 8,500 | 11,200 | +32% | 12,050 | 2400 | 890 |
| NumPy (FD) | 0 | 3,800 | 15,200 | +300% | 15,200 | 420 | 745 |
| JAX (XLA) | 12,500 | 2,800 | 3,700 | +32% | 16,200 | 1800 | 920 |
| TensorFlow | 18,000 | 4,200 | 5,600 | +33% | 23,600 | 3200 | 1150 |
| Autograd | 0 | 45,000 | 58,500 | +30% | 58,500 | 850 | 780 |
AADC delivers the best combination of fast compilation and fast execution. Perfect for real-time pricing where trade structures change frequently.