Best way to compute Hessian-vector product?

I am trying to compute the Hessian-vector product. The documentation on Advanced automatic differentiation (Advanced automatic differentiation  |  TensorFlow Core) links to:

However, this has half a dozen different ways of implementing it! Which is most efficient? I tried to run the benchmark to get those numbers, but I couldn’t figure out how.