-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[move-stdlib] Use vector::move_range inside vector, and evaluate performance / calibrate gas #14862
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⏱️ 9h 26m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
8 tasks
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## igor/native_vector_move_range #14862 +/- ##
================================================================
Coverage ? 60.1%
================================================================
Files ? 858
Lines ? 211455
Branches ? 0
================================================================
Hits ? 127237
Misses ? 84218
Partials ? 0 ☔ View full report in Codecov by Sentry. |
igor-aptos
force-pushed
the
igor/native_vector_move_range
branch
from
October 4, 2024 16:59
75ebf46
to
d724063
Compare
igor-aptos
force-pushed
the
igor/use_native_vector_move_range
branch
from
October 4, 2024 17:00
0df908c
to
0fab436
Compare
igor-aptos
added
CICD:run-execution-performance-test
Run execution performance test
CICD:run-execution-performance-full-test
Run execution performance test (full version)
labels
Oct 4, 2024
igor-aptos
force-pushed
the
igor/use_native_vector_move_range
branch
from
October 4, 2024 22:36
0fab436
to
b1a2e70
Compare
8 tasks
igor-aptos
force-pushed
the
igor/native_vector_move_range
branch
from
October 8, 2024 19:00
d724063
to
e4540db
Compare
igor-aptos
force-pushed
the
igor/use_native_vector_move_range
branch
from
October 8, 2024 19:00
b1a2e70
to
6b493cd
Compare
igor-aptos
force-pushed
the
igor/native_vector_move_range
branch
from
October 9, 2024 20:30
e4540db
to
ae8e817
Compare
igor-aptos
force-pushed
the
igor/use_native_vector_move_range
branch
from
October 9, 2024 20:30
6b493cd
to
6046016
Compare
igor-aptos
force-pushed
the
igor/native_vector_move_range
branch
from
October 10, 2024 00:07
ae8e817
to
48df5f1
Compare
igor-aptos
force-pushed
the
igor/use_native_vector_move_range
branch
from
October 10, 2024 00:08
6046016
to
c5e50b3
Compare
igor-aptos
force-pushed
the
igor/native_vector_move_range
branch
from
October 10, 2024 18:09
48df5f1
to
1407c00
Compare
igor-aptos
force-pushed
the
igor/use_native_vector_move_range
branch
from
October 10, 2024 18:10
c5e50b3
to
36f8618
Compare
igor-aptos
force-pushed
the
igor/native_vector_move_range
branch
from
October 15, 2024 19:48
1407c00
to
94d1b68
Compare
igor-aptos
force-pushed
the
igor/use_native_vector_move_range
branch
from
October 15, 2024 19:48
36f8618
to
9851f51
Compare
igor-aptos
force-pushed
the
igor/native_vector_move_range
branch
from
October 16, 2024 21:07
94d1b68
to
51f1f1c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
igor-aptos
force-pushed
the
igor/use_native_vector_move_range
branch
from
December 6, 2024 00:50
afa6bd2
to
0fe0e4c
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
danielxiangzl
pushed a commit
that referenced
this pull request
Dec 12, 2024
…ormance / calibrate gas (#14862) ## Description Use vector::move_range inside of vector, to optimize `insert`, `remove`, `append`, `trim`. Extend aptos-move/e2e-benchmark/src/main.rs to track gas and gas/s, to allow for quick calibration. Adding workloads to txn-emitter to be able to use it throughput. Additionally add a missing `replace` method, which replaces value at particular index. Running on extended set of params: https://gist.github.com/igor-aptos/e8d4e21edcbc75dddcb9382d4e077665 Summary of the performance tests: - performance doesn't depend on the size of the values (unless they are primitive), as vector modifies only pointers to them. - operation depends very little on how many elements we need to move - moving 1000 elements (i.e. to insert into a vector 1000 elements from the end) is only (!!) 2x slower than moving 1 element, end-to-end. For gas calibration, on the variety of workloads, current implementation has decent variance. After tuning params to match the averages, variance seems much smaller.
danielxiangzl
pushed a commit
that referenced
this pull request
Dec 12, 2024
…ormance / calibrate gas (#14862) ## Description Use vector::move_range inside of vector, to optimize `insert`, `remove`, `append`, `trim`. Extend aptos-move/e2e-benchmark/src/main.rs to track gas and gas/s, to allow for quick calibration. Adding workloads to txn-emitter to be able to use it throughput. Additionally add a missing `replace` method, which replaces value at particular index. Running on extended set of params: https://gist.github.com/igor-aptos/e8d4e21edcbc75dddcb9382d4e077665 Summary of the performance tests: - performance doesn't depend on the size of the values (unless they are primitive), as vector modifies only pointers to them. - operation depends very little on how many elements we need to move - moving 1000 elements (i.e. to insert into a vector 1000 elements from the end) is only (!!) 2x slower than moving 1 element, end-to-end. For gas calibration, on the variety of workloads, current implementation has decent variance. After tuning params to match the averages, variance seems much smaller.
georgemitenkov
pushed a commit
that referenced
this pull request
Jan 6, 2025
…ormance / calibrate gas (#14862) ## Description Use vector::move_range inside of vector, to optimize `insert`, `remove`, `append`, `trim`. Extend aptos-move/e2e-benchmark/src/main.rs to track gas and gas/s, to allow for quick calibration. Adding workloads to txn-emitter to be able to use it throughput. Additionally add a missing `replace` method, which replaces value at particular index. Running on extended set of params: https://gist.github.com/igor-aptos/e8d4e21edcbc75dddcb9382d4e077665 Summary of the performance tests: - performance doesn't depend on the size of the values (unless they are primitive), as vector modifies only pointers to them. - operation depends very little on how many elements we need to move - moving 1000 elements (i.e. to insert into a vector 1000 elements from the end) is only (!!) 2x slower than moving 1 element, end-to-end. For gas calibration, on the variety of workloads, current implementation has decent variance. After tuning params to match the averages, variance seems much smaller.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CICD:run-execution-performance-full-test
Run execution performance test (full version)
CICD:run-execution-performance-test
Run execution performance test
CICD:run-framework-upgrade-test
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.
Description
Use vector::move_range inside of vector, to optimize
insert
,remove
,append
,trim
.Extend aptos-move/e2e-benchmark/src/main.rs to track gas and gas/s, to allow for quick calibration.
Adding workloads to txn-emitter to be able to use it throughput.
Additionally add a missing
replace
method, which replaces value at particular index.Running on extended set of params:
https://gist.github.com/igor-aptos/e8d4e21edcbc75dddcb9382d4e077665
Summary of the performance tests:
For gas calibration, on the variety of workloads, current implementation has decent variance. After tuning params to match the averages, variance seems much smaller.
Results table:
How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist