Improve benchmarking command line #177
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After the update, the result number becomes more stable.
Raw data from CI build:
proxyproxyproxystd::unique_ptrstd::shared_ptr(without memory pool)std::shared_ptr(with memory pool)std::anyproxy(without memory pool)proxy(with memory pool)std::unique_ptrstd::shared_ptr(both without memory pool)std::shared_ptr(both with memory pool)Comparison:
proxyvs. virtual functionsproxyis about 257.2% fasterproxyis about 30.8% fasterproxyis about 37.6% fasterproxyis about 5.0% fasterproxyvs. virtual functionsproxyis about 279.1% fasterproxyis about 30.0% fasterproxyis about 15.8% fasterproxyis about 1.7% fasterproxyvs.std::unique_ptrproxyis about 362.8% fasterproxyis about 398.4% fasterproxyis about 382.9% fasterproxyis about 292.7% fasterproxyvs.std::shared_ptr(without memory pool)proxyis about 483.6% fasterproxyis about 479.1% fasterproxyis about 435.9% fasterproxyis about 412.7% fasterproxyvs.std::shared_ptr(with memory pool)proxyis about 226.3% fasterproxyis about 588.0% fasterproxyis about 559.7% fasterproxyis about 186.6% fasterproxyvs.std::anyproxyis about 50.0% fasterproxyis about 274.3% fasterproxyis about 268.9% fasterproxyis about 17.4% fasterproxy(without memory pool) vs.std::unique_ptrproxyis about 4.0% slowerproxyis about 8.1% fasterproxyis about 1.0% slowerproxyis about 8.8% slowerproxy(with memory pool) vs.std::unique_ptrproxyis about 104.2% fasterproxyis about 98.2% fasterproxyis about 123.6% fasterproxyis about 88.6% fasterproxyvs.std::shared_ptr(both without memory pool)proxyis about 12.1% fasterproxyis about 15.0% fasterproxyis about 8.1% fasterproxyis about 13.3% fasterproxyvs.std::shared_ptr(both with memory pool)proxyis about 9.7% fasterproxyis about 17.0% fasterproxyis about 8.3% fasterproxyis about 46.0% fasterproxy(without memory pool) vs.std::anyproxyis about 27.1% fasterproxyis about 0.9% fasterproxyis about 0.3% slowerproxyis about 4.2% fasterproxy(with memory pool) vs.std::anyproxyis about 170.2% fasterproxyis about 85.1% fasterproxyis about 125.3% fasterproxyis about 115.3% faster