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:
proxy
proxy
proxy
std::unique_ptr
std::shared_ptr
(without memory pool)std::shared_ptr
(with memory pool)std::any
proxy
(without memory pool)proxy
(with memory pool)std::unique_ptr
std::shared_ptr
(both without memory pool)std::shared_ptr
(both with memory pool)Comparison:
proxy
vs. virtual functionsproxy
is about 257.2% fasterproxy
is about 30.8% fasterproxy
is about 37.6% fasterproxy
is about 5.0% fasterproxy
vs. virtual functionsproxy
is about 279.1% fasterproxy
is about 30.0% fasterproxy
is about 15.8% fasterproxy
is about 1.7% fasterproxy
vs.std::unique_ptr
proxy
is about 362.8% fasterproxy
is about 398.4% fasterproxy
is about 382.9% fasterproxy
is about 292.7% fasterproxy
vs.std::shared_ptr
(without memory pool)proxy
is about 483.6% fasterproxy
is about 479.1% fasterproxy
is about 435.9% fasterproxy
is about 412.7% fasterproxy
vs.std::shared_ptr
(with memory pool)proxy
is about 226.3% fasterproxy
is about 588.0% fasterproxy
is about 559.7% fasterproxy
is about 186.6% fasterproxy
vs.std::any
proxy
is about 50.0% fasterproxy
is about 274.3% fasterproxy
is about 268.9% fasterproxy
is about 17.4% fasterproxy
(without memory pool) vs.std::unique_ptr
proxy
is about 4.0% slowerproxy
is about 8.1% fasterproxy
is about 1.0% slowerproxy
is about 8.8% slowerproxy
(with memory pool) vs.std::unique_ptr
proxy
is about 104.2% fasterproxy
is about 98.2% fasterproxy
is about 123.6% fasterproxy
is about 88.6% fasterproxy
vs.std::shared_ptr
(both without memory pool)proxy
is about 12.1% fasterproxy
is about 15.0% fasterproxy
is about 8.1% fasterproxy
is about 13.3% fasterproxy
vs.std::shared_ptr
(both with memory pool)proxy
is about 9.7% fasterproxy
is about 17.0% fasterproxy
is about 8.3% fasterproxy
is about 46.0% fasterproxy
(without memory pool) vs.std::any
proxy
is about 27.1% fasterproxy
is about 0.9% fasterproxy
is about 0.3% slowerproxy
is about 4.2% fasterproxy
(with memory pool) vs.std::any
proxy
is about 170.2% fasterproxy
is about 85.1% fasterproxy
is about 125.3% fasterproxy
is about 115.3% faster