@@ -15,7 +15,7 @@ use aptos_transaction_generator_lib::{
15
15
use aptos_types:: { account_address:: AccountAddress , transaction:: TransactionPayload } ;
16
16
use rand:: { rngs:: StdRng , SeedableRng } ;
17
17
use serde_json:: json;
18
- use std:: { collections:: HashMap , process:: exit} ;
18
+ use std:: { collections:: HashMap , fs , process:: exit} ;
19
19
20
20
// bump after a bigger test or perf change, so you can easily distinguish runs
21
21
// that are on top of this commit
@@ -85,42 +85,16 @@ const ALLOWED_REGRESSION: f64 = 0.15;
85
85
const ALLOWED_IMPROVEMENT : f64 = 0.15 ;
86
86
const ABSOLUTE_BUFFER_US : f64 = 2.0 ;
87
87
88
- const CALIBRATION_VALUES : & str = "
89
- Loop { loop_count: Some(100000), loop_type: NoOp } 60 0.955 1.074 41893.7
90
- Loop { loop_count: Some(10000), loop_type: Arithmetic } 60 0.965 1.078 25915.0
91
- CreateObjects { num_objects: 10, object_payload_size: 0 } 60 0.924 1.082 158.1
92
- CreateObjects { num_objects: 10, object_payload_size: 10240 } 60 0.951 1.118 9356.2
93
- CreateObjects { num_objects: 100, object_payload_size: 0 } 60 0.926 1.082 1574.2
94
- CreateObjects { num_objects: 100, object_payload_size: 10240 } 60 0.952 1.092 11541.9
95
- InitializeVectorPicture { length: 128 } 10 0.965 1.038 163.3
96
- VectorPicture { length: 128 } 10 0.938 1.060 48.8
97
- VectorPictureRead { length: 128 } 10 0.977 1.077 46.4
98
- InitializeVectorPicture { length: 30720 } 60 0.948 1.123 27893.4
99
- VectorPicture { length: 30720 } 60 0.931 1.125 6923.1
100
- VectorPictureRead { length: 30720 } 60 0.934 1.102 6923.1
101
- SmartTablePicture { length: 30720, num_points_per_txn: 200 } 60 0.952 1.109 43594.7
102
- SmartTablePicture { length: 1048576, num_points_per_txn: 300 } 60 0.957 1.120 73865.4
103
- ResourceGroupsSenderWriteTag { string_length: 1024 } 60 0.934 1.134 15.0
104
- ResourceGroupsSenderMultiChange { string_length: 1024 } 60 0.929 1.122 32.3
105
- TokenV1MintAndTransferFT 60 0.958 1.093 385.2
106
- TokenV1MintAndTransferNFTSequential 60 0.973 1.139 588.1
107
- TokenV2AmbassadorMint { numbered: true } 60 0.960 1.141 512.5
108
- LiquidityPoolSwap { is_stable: true } 60 0.961 1.103 590.3
109
- LiquidityPoolSwap { is_stable: false } 60 0.954 1.134 552.2
110
- CoinInitAndMint 10 0.975 1.043 199.6
111
- FungibleAssetMint 10 0.954 1.038 236.3
112
- IncGlobalMilestoneAggV2 { milestone_every: 1 } 10 0.960 1.047 32.9
113
- IncGlobalMilestoneAggV2 { milestone_every: 2 } 10 0.971 1.066 18.1
114
- EmitEvents { count: 1000 } 10 0.969 1.052 8615.5
115
- " ;
116
-
117
88
struct CalibrationInfo {
118
89
// count: usize,
119
90
expected_time_micros : f64 ,
120
91
}
121
92
122
93
fn get_parsed_calibration_values ( ) -> HashMap < String , CalibrationInfo > {
123
- CALIBRATION_VALUES
94
+ let calibration_values =
95
+ fs:: read_to_string ( "aptos-move/e2e-benchmark/data/calibration_values.tsv" )
96
+ . expect ( "Unable to read file" ) ;
97
+ calibration_values
124
98
. trim ( )
125
99
. split ( '\n' )
126
100
. map ( |line| {
0 commit comments