Let's suppose that I wanted to compute $\left\|f\right\|_{\infty}=\sup_{t \in \mathcal{T}} \left|f(t)\right|$ for a $f$ that may not be easy to optimize. This is the infinity norm of a function, and there's an asymptotic relationship: as $p \to \infty$, $\left\|f\right\|_p \to \left\|f\right\|_{\infty}$ with $\left\|f\right\|_p = \left(\int_{\mathcal{T}}\left|f(t)\right|^p dt\right)^{1/p}$. This relationship suggests we could attempt to solve the optimization problem (in the sense of finding the maximum) via numerical integration, computing the integral for a very large $p$ and taking the $p^{\text{th}}$ root.
How well would this approach to estimating $\left\|f\right\|_{\infty}$ work numerically?