Tech stocks were mostly up Friday, along with the major market indices, as investors found better-than-expected economic data on home sales and consumer confidence.

Shares of Juniper Networks ( JNPR) rose $3.62, or 16%, to $26.19 after it beat expectations for its second quarter. Juniper reported net income of $120.4 million, or 23 cents a share, up from $86.1 million, or 16 cents a share, a year ago. Excluding charges, the company reported EPS of 28 cents. Revenue rose 32% to $879 million. Analysts were looking for a profit of 27 cents a share and revenue of $852.2 million.

Juniper also said it has hired head of Microsoft's ( MSFT) Windows and online services business, Kevin Johnson, to be the company's new CEO. Analysts at Citigroup and Friedman, Billings, Ramsey raised their rating on the stock following the earnings report.

Riverbed Technology ( RVBD) was up $1.81, or 11.6%, to $17.39 after it reported better-than-expected second quarter results. EPS, excluding items, was 13 cents, compared with 16 cents a year ago but higher than analysts' estimates of 11 cents. Revenue rose 51% to $81.6 million and beat Street expectations of $77 million.

Chip maker Microsemi ( MSCC) gained $1.08, or 4.4%, to $25.30 following its third-quarter earnings report. Excluding items, EPS was 34 cents, in line with analysts' expectations. Revenue rose 13.8% to $129.3 million in the quarter and was ahead of consensus estimates of $128.8 million.

Avid Tech ( AVID) gained $1.81, or 9.2%, to $21.50 after it beat analysts' expectations for the second quarter. Revenue rose to $222.9 million from $225.3 million a year ago and was higher than consensus estimates of $211 million. The company reported a loss of $10.4 million, or 28 cents a share, compared with a loss of $6 million, or 15 cents a share, a year ago. Excluding these items, it posted break-even EPS. Analysts were expecting a loss of 10 cents a share.

Western Digital ( WDC) was down $3.35, or 10%, to $30.27 after the company said revenue grew 46% in the fourth quarter, but profit remained flat. Revenue grew to $1.99 billion and was higher than analysts' expectations of $1.89 billion. An analyst at Needham downgraded the stock to buy from strong buy following the results.

GPS technology-based chip maker Sirf Technology ( SIRF) lost 62 cents, or 14.7%, to $3.60 after it posted a hefty loss in the second quarter as writedowns and weak demand took a toll on earnings. Sirf said it expects third-quarter revenue between $60 million and $64 million, vs. the $69.9 million expected by analysts.

BMC Software ( BMC) shed $3.19, or 8.8%, to $32.99 after it reported lower earnings for its first quarter though revenue grew 14%. EPS, excluding charges related to acquisition of BladeLogic, were 43 cents, while revenue increased to $437.5 million from $385 million a year ago. Analysts were expecting earnings of 43 cents a share on revenue of $432.6 million.

Citrix Systems ( CTXS) was down 65 cents, or 2.5%, to $25.59 after the company reported a lower second-quarter profit. Net income for the quarter was $34.6 million, or 18 cents a share, compared with $53.4 million, or 29 cents a share, a year ago. Excluding charges, the company reported EPS of 38 cents, two cents higher than Street expectations. Revenue rose to $391.7 million from $334.4 million in the quarter and compared to analysts' estimates of $386 million. An analyst at Robert W. Baird downgraded the stock to neutral from outperform.