High speed train is more of an alternative to flying then to buses. Taking into consideration time spent to get to/from the airport, security checks and occasional delays, trains are better under 1000 km, and may be worth it for a lot more.
Eurostar checks are very tight and even on busy days it won't take over an hour of queuing at Gare du Nord. Usually there aren't so many trains to board so it's much easier to organize. I suffered a whole station lock-down on a busy Sunday night due to a large piece of luggage left near the security checkpoint. It delayed my trip only 2 hours, including the delays of not being on time for the cleared route. Another thing is trains don't usually have busy schedule of airplanes so they usually wait for people if something like that happens.
Also there's no fuel around to use as explosive material.
Spain had its share of train terrorist attacks, and at least in the rest of the Europe you can't tell. I don't know about inside Spain, though, but I imagine it's still not much difference.