Django 6.1.3 on Python 3.14.8: ch05-bench Signer.unsign() cost across SECRET_KEY_FALLBACKS (50,000 calls x 5 trials, microseconds) path us_per_call relative primary key hit (1 HMAC) 6.08 1.00x fallback #1 hit (2 HMACs) 11.41 1.88x fallback #3 hit (4 HMACs) 22.39 3.68x fallback #5 hit (6 HMACs) 35.95 5.92x invalid signature (6 HMACs + BadSignature) 34.67 5.70x Security middleware per-request cost (1,000 requests x 5 trials, microseconds) middleware_stack median_us delta_us bare MIDDLEWARE=[] (GET) 71.8 + 0.0 + SecurityMiddleware (GET) 85.2 + 13.3 + Security + XFrameOptions (GET) 91.2 + 19.4 + Security + XFO + CSP (nonce unused) 97.2 + 25.4 + Security + XFO + CSP (nonce read) 112.3 + 40.5 + Security + XFO + CSP + Csrf (GET) 109.6 + 37.8 + Security + XFO + CSP + Csrf (POST check) 157.4 + 85.6