Stock market value is not counted as part of the GDP calculation. For example, US stock market total value is 21.63 trillion USD. Its GDP, on the other hand, is only 16.77 trillion USD. This is because stock market exchange does not actually create any value where GDP stands for Gross Domestic Product.
Stock market value to GDP ratio is a less used indicator, mostly because it doesn't reflect much.
中美GDP构成比较,中国房地产业总收入只是制造业的5%_国际观察_天涯论坛
Stock market value is not total wealth either, especially neither infrastructure nor personal wealth. Part of personal saving of China is invested into stock market, but it is less than 5%. Rule of uneven wealth distribution also means out of the 5%, great majority is invested by wealthy individual rather than the common folk. This is, of course, on top of the fact that personal saving is a just one part of personal liquid assets, let alone the the entire personal wealth.
Infrastructure really has very little to do with stock market value. Part of infrastructure is fixed capital investment and part of them are simply national owned assets. In fact, infrastructure is pretty anti-thesis to stocks because infrastructure is typically fixed asset while stock market mainly deals with liquid asset.