With bulb it depends on how/how often you power cycle. A good way to extend its life is to not power cycle it and to underpower it. Dimming a bulb also saves electricity and easier on the eyes.
With LED it is up to manufacturer. People say LEDs are cheaper but those leds are exactly the ones you have to keep buying. And good LED prices can go pretty high compared to bulbs.