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

[move][stdlib] Add efficient BigOrderedMap implementation #14753

Merged
merged 20 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions aptos-move/e2e-benchmark/data/calibration_values.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ VectorRangeMove { vec_len: 3000, element_len: 1, index: 1000, move_len: 500, rep
VectorTrimAppend { vec_len: 100, element_len: 100, index: 0, repeats: 0 } 119 0.909 1.201 293.5
VectorTrimAppend { vec_len: 100, element_len: 100, index: 10, repeats: 1000 } 119 0.951 1.143 12571.2
VectorRangeMove { vec_len: 100, element_len: 100, index: 50, move_len: 10, repeats: 1000 } 6 0.925 1.001 5316.2
MapInsertRemove { len: 10, repeats: 0, use_simple_map: false } 6 0.925 1.001 378
MapInsertRemove { len: 10, repeats: 100, use_simple_map: false } 6 0.925 1.001 8184
MapInsertRemove { len: 10, repeats: 100, use_simple_map: true } 6 0.925 1.001 8201.7
MapInsertRemove { len: 100, repeats: 0, use_simple_map: false } 6 0.925 1.001 5094
MapInsertRemove { len: 100, repeats: 100, use_simple_map: false } 6 0.925 1.001 15838
MapInsertRemove { len: 100, repeats: 100, use_simple_map: true } 6 0.925 1.001 39802.4
MapInsertRemove { len: 1000, repeats: 0, use_simple_map: false } 6 0.925 1.001 66878
MapInsertRemove { len: 1000, repeats: 100, use_simple_map: false } 6 0.925 1.001 79826
MapInsertRemove { len: 100, repeats: 100, map_type: OrderedMap } 6 0.925 1.001 15838
MapInsertRemove { len: 100, repeats: 100, map_type: SimpleMap } 6 0.925 1.001 39802.4
MapInsertRemove { len: 1000, repeats: 100, map_type: OrderedMap } 6 0.925 1.001 79826
33 changes: 4 additions & 29 deletions aptos-move/e2e-benchmark/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use aptos_transaction_generator_lib::{
entry_point_trait::{AutomaticArgs, EntryPointTrait, MultiSigConfig},
publishing::publish_util::{Package, PackageHandler},
};
use aptos_transaction_workloads_lib::{EntryPoints, LoopType};
use aptos_transaction_workloads_lib::{EntryPoints, LoopType, MapType};
use aptos_types::{account_address::AccountAddress, transaction::TransactionPayload};
use rand::{rngs::StdRng, SeedableRng};
use serde_json::json;
Expand Down Expand Up @@ -238,45 +238,20 @@ fn main() {
move_len: 10,
repeats: 1000,
},
EntryPoints::MapInsertRemove {
len: 10,
repeats: 0,
use_simple_map: false,
},
EntryPoints::MapInsertRemove {
len: 10,
repeats: 100,
use_simple_map: false,
},
EntryPoints::MapInsertRemove {
len: 10,
repeats: 100,
use_simple_map: true,
},
EntryPoints::MapInsertRemove {
len: 100,
repeats: 0,
use_simple_map: false,
},
EntryPoints::MapInsertRemove {
len: 100,
repeats: 100,
use_simple_map: false,
map_type: MapType::OrderedMap,
},
EntryPoints::MapInsertRemove {
len: 100,
repeats: 100,
use_simple_map: true,
},
EntryPoints::MapInsertRemove {
len: 1000,
repeats: 0,
use_simple_map: false,
map_type: MapType::SimpleMap,
},
EntryPoints::MapInsertRemove {
len: 1000,
repeats: 100,
use_simple_map: false,
map_type: MapType::OrderedMap,
},
];

Expand Down
Loading
Loading