Just type "/fps" in game.
But anyway you have to know lot of things to make a good stress test, and it will tell you only which way is the faster, you can't really count on accuracy.
Note that the fps drop is not supposed to be linear, so for the two test codes you would have to get the same fps frop and compare how many operation you do in code A, and code B.
Plus in real codes, the struct allocation is clearly not the most expensive thing, while the api is uglier and error prone when you inline and use a custom struct allocator and struct extends array.
Hence the reason why struct extends array are useless in most of cases (at least when you need usual struct allocators)