Having spent a long time on IRC, I can attest to seeing many people's questions getting answered there constantly, and usually (on the active channels, at least) very quickly (ie. often within seconds or a minute or two). Fifteen minutes is usually considered a long time to wait in an active channel for an answer to a question that isn't really obscure.
Of course the likelihood of an answer decreases with the obscurity of the question, the lack of popularity/appropriateness of whatever it is you're asking about, and depends on when and how you ask the question. The same goes for any other medium of communication.
I'm happy that you've had a positive experience on SO, and sorry that you haven't had much luck with IRC. But that doesn't mean that your experience is a typical one.
This attitude of yours says more about your lack of experience with and appreciation of IRC than it does about its relative merits in respect to SO.
As to inexperience, I'll admit I've only been on Efnet's #help since 1997-ish and Freenode since around 2005, but that's still much longer than I've been on SO.
You have no idea how devs actually function then.
Almost every open source project that is active and of a certain size has an IRC dev channel where they hash stuff out.
I've worked at more than one company where dev and ops idled in private IRC channels as well.
Nearly every time I asked a programming question on IRC I've had bad experiences with arrogant users who think you're wasting their time with your noobness. Now of course I don't believe that everyone on IRC is like that, but it's really the last place I'd recommend for newbies.
EDIT: Incidentally, freenode is also the home of the unofficial HN IRC channel (#startups).
Some channels, like #help (or most other channels with the word "help" in them, like #linuxhelp) are especially patient with newbies.
That said, it certainly does help to know and follow IRC netiquette , and know how to ask questions[1].
But you're right about the searchability of SO. That is one of the strengths having a good, searchable archive of questions and answers. Forums, some mailing lists, and Usenet also share that strength, to some extent.
On the other hand, some IRC logs have been published, and google search results do sometimes happen upon such public logs.
You can also keep your own long-term logs, just by turning on logging in your IRC client, and leaving your client idling in the channels that interest you.
You want an even faster answer?
Ask on IRC.
As far as programming questions go, freenode is usually the best place to go (with a minority or apps and projects off on some other irc networks, sometimes).
That said, HN, forums, mailing lists, usenet, and SO are usually better for preserving answers for others to learn from once the question has already been asked by someone else.
The quality and depth of the answers can sometimes be better in these other media that are more well suited to longer, uninterrupted, essay-like answers.
On the other hand, that's not always the case, since on IRC there is a much higher level of interaction and you also have the ability to interrupt the speaker and ask for clarification on any point, with immediate feedback.
As a very rough analogy, I generally find IRC to be more like having a real-time spoken conversation with a teacher (or teachers). Whereas those other media are something more akin to correspondence via letters and email.
Of course, you don't get upvotes or points for answering questions on IRC. But the system works very well anyway. And, honestly, who really cares about these silly tokens anyway?