Like most things in cycling it depends on objectives. It takes me about 45 minutes of warmup before I can produce threshold power. For more casual settings or group rides, I go with the flow and conserve energy until I am warmed up. For races, I use a structured warmup.