gcpp
gcpp copied to clipboard
add performance test
trafficstars
This adds performance test that can work in two modes:
- When executed without command line arguments, it prints on stdout:
Inserting 5000 elements into deferred_vector<deferred_ptr> is 1226 times slower than into vector<unique_ptr>
- When executed with one command line argument (html file name), it outputs html file with performance comparison between deferred_vector<deferred_ptr>, std::vectorstd::unique_ptr and std::vectorstd::shared_ptr (uses Google Line Chart https://developers.google.com/chart/interactive/docs/gallery/linechart )
Here is an example of output it can produce:
