Karachi stocks hit an all-time high Monday following Nawaz Sharif's strong victory in landmark elections, which raised hopes the steel tycoon's pro-business agenda could spark an economic revival.

The benchmark index of top 100 shares rose 1.68 percent to 20,250.42 points in afternoon trade, surpassing the 20,000 mark for the first time, after Sharif's Pakistan Muslim League-N (PML-N) emerged with a clear lead over its rivals.

The election results defied analysts' predictions of a weak parliament as the PML-N looked able to form a government without the help of its traditional rival the Pakistan People's Party and Imran Khan's Pakistan Tehreek-e-Insaaf.

Ratings agency Standard and Poor's said the election results set the stage for "longer-term stability" of its B- sovereign credit rating on Pakistan.

"We were fearing a hung parliament and thus a weaker and unstable government would come into power as a result of the elections," said Mohammad Sohail, the chief of Topline Securities, a leading brokerage house in Karachi.

Investors are hopeful of an economic revival under Sharif, whose pro-business policies earned him a good reputation among traders and industrialists during his two previous tenures in the 1990s.

"He liberalised the economy by launching a privatisation programme and liberalised the financial sector allowing foreign investors to step into Pakistani capital markets," Sohail said.

Though his privatisation agenda was never fully implemented, Sharif has promised in early interviews to pick up from where he left off.