When it comes to investing, some New York real estate is still producing solid returns—but hogs are just a hair behind.
Spread Sheet compared the 10-year performance of 100 of the best-known Manhattan condo buildings against the returns on some standard commodities—gold, crude oil, hogs and coffee. These are all traded on futures exchanges, in which people buy or sell the commodity for a specific price on a specific date in the future.
In terms of returns, gold topped the list with a compound annual growth rate of 12.91% over the past 10 years. West Texas Intermediate crude-oil futures came in second, rising 11.02% annually; coffee rose 9% over the 10-year period, and hog futures rose 5.34%.
By comparison, the S&P 500 stock-market index saw a 5.56% compound annual growth rate over the past 10 years.
Meanwhile, those who invested in Manhattan residential real estate 10 years ago have seen values rise 6.5% over that time period, which includes the real-estate market crash that began in 2008, according to according to Pete Culliney, director of research for listings website CityRealty. To track the returns, the company looked at condo-building sale prices starting in mid-2004 to determine each building's sale price a square foot of living space. The price was then averaged over 10 years to determine the compound annual growth rate.
Some of the properties that helped boost the returns include the sale of a $48 million duplex in 15 Central Park West, as well as a $15 million deal in the Time Warner Center. Other buildings on the list include One Madison and Residences at the Mandarin Oriental.
"The consistency of New York City real estate is something that is really hard to match," Mr. Culliney said.
Volatility can be a big concern with assets like oil and gold, which both saw larger returns, but pose considerably more risk due to political factors. Hogs have rivaled real estate in terms of dependability, but this year has been an exception, with futures jumping nearly 50% due to a deadly virus that has killed millions of piglets on U.S. hog farms.
Coffee can be a risky investment partly because of unpredictable price swings, said Sterling Smith, a futures specialist at Citigroup C -1.66% Citigroup Inc.  in Chicago. "This stuff is nuts—it moves like nothing else," he said.
When and for how long one invests in these types of assets can make a world of difference, says JR Stegmueller, president at consulting firm Fusion Trading Zone in Frankfort, Ill. "In commodities, 30 days is a lifetime," let alone 10 years, he said.
Write to Stefanos Chen at stefanos.chen@wsj.com