Roasting asparagus in the oven takes longer than in the air fryer. Asparagus will roast in about 12-15 minutes in an oven set to 425 F. In the air fryer, they take less time because air fryers are typically smaller than ovens. The air circulates more efficiently, so the asparagus should cook in about seven minutes at a similar temperature.