It takes more like 10 seconds. For a large range of height and weight inputs crossed with all option combinations, you could precompute ~10M measurements and return results basically instantly.