We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Performance Test: containers
Performance Test: containers
Minggo Zhang wrote:
Any suggestion of measuring memory usage?
For iOS, Profiler (that comes with Xcode) is a very good one.
In particular the “VM Tracker” module.
https://developer.apple.com/library/ios/DOCUMENTATION/AnalysisTools/Reference/Instruments\_User\_Reference/VMTrackerInstrument/VMTrackerInstrument.html
For Android, I don’t know.
Minggo Zhang wrote:
If we use profiler, then we can not get memory usage by codes? Just watch the profiling window?
Hi,
Yes, to measure the memory you should use Instruments (or any other profiler), and see the results “manually”, on the Profiler window.
To measure the speed, you should use the built-in macro that I used for the “Alloc perf test”.
Add a container performance test in our suit of performance test:
We need to measure:
std::map
vsstd::unordered_map
vscocos2d::Dictionary
There are some comparisons here http://attractivechaos.wordpress.com/2008/10/07/another-look-at-my-old-benchmark/, but they are old and also we need our own tests.
What we need to test is:
performance of fetching 5000 elements
memory it takes to add 5000 elements
Please, test it on an iPhone 4S and put the results in this spreadsheet:
https://docs.google.com/spreadsheet/ccc?key=0AvvkdgVbWvpZdHFudzdDT3NuYTRNTHlZZzRGZWYzMmc (add a new page for this)