TORONTO -- Stock markets in Toronto and New York ended the week with relatively flat showings amid ongoing concerns over the strength of the U.S. economic recovery.

An exception was the Nasdaq, which continued its surge into record territory on the heels of earnings reports from big technology companies like Microsoft, Google and Amazon that beat expectations.

The tech-heavy index, which closed at an all-time high of 5,056.06 on Thursday, advanced another 36.03 points to 5,092.09. The S&P 500 also managed a record close despite adding just 4.76 points to 2,117.69, marginally above its previous record set in March.

Meanwhile, the Dow Jones industrials advanced a modest 21.45 points to 18,080.14.

In Toronto, the S&P/TSX composite index edged 15.98 points higher to 15,408.33 as most commodity prices failed to gain traction after advancing on Thursday. The Canadian dollar was down 0.16 of a U.S. cent at 82.17 cents.

The June crude oil contract closed down 59 cents at US$57.15 a barrel, while June gold gave back $19.30 to US$1,175 an ounce after a gain of $7.40 on Thursday. The metals an mining sector was the leading advancer on the TSX, up 4.72 per cent as May copper rose five cents to US$2.75 a pound, although the price of the widely used metal was still below last Friday's close of $2.77.