gcpp icon indicating copy to clipboard operation
gcpp copied to clipboard

add performance test

Open hia3 opened this issue 7 years ago • 1 comments
trafficstars

This adds performance test that can work in two modes:

  1. 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>

  1. 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:

image

hia3 avatar May 24 '18 15:05 hia3

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 24 '18 15:05 CLAassistant