Obama has been in office almost two years now and no attacks.
Bush was in office nine months befrore the biggest attack on America since Pearl Harbor.
So who's got the better record?
Obama has had the benefit of increased security from Bush
There might be some truth to that -- but not as implied in your comment.
First, the 9/11 attack could have been prevented if the Bush Administration had not
systematically ignored a long sequence of warnings, up to and including information about suspicious hijackers taking lessons on "steering passengers airliners." Long before the 9/11 attack the Bush Administration was warned by Usama bin Laden that if the American military base (the bin Sultan Airbase) was not removed from Mecca (Saudi Arabia) and if the U.S. did not stop supporting Israel's expansion into the Gaza region there would be "serious consequences." The warnings and the intelligence information were ignored.
Shortly after the attack Bush very quietly closed down the bin Sultan Airbase and withdrew all of our troops from Saudi Arabia and he pressured Arial Sharon to withdraw the settlements from Gaza (agreeing to compensate every evicted settler with U.S. taxpayer money).
That and only that is why there were no more attacks during the Bush Administration. And the peaceful effect of that (overdue) compliance with Al Qaeda's reasonable demands probably has carried over into the Obama Administration.
George W. Bush was an incompetent sonofabitch in every possible way and the 9/11 attack is manifest evidence of that fact. It was well within his means to prevent that attack but he chose to let it happen knowing it would facilitate his ambition to occupy Iraq on behalf of his oil industry sponsors.