Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add performance test #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add performance test #26

wants to merge 1 commit into from

Conversation

hia3
Copy link

@hia3 hia3 commented May 24, 2018

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

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>

2) When executed with one command line argument (html file name), it outputs html file with performance comparison of deferred_vector<deferred_ptr>, std::vector<std::unique_ptr> and std::vector<std::shared_ptr> (uses Google Line Chart https://developers.google.com/chart/interactive/docs/gallery/linechart )
@CLAassistant
Copy link

CLAassistant commented May 24, 2018

CLA assistant check
All committers have signed the CLA.

@hia3 hia3 mentioned this pull request May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants