File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ const SEED_ACCOUNTS: &str = "100000";
1919const SEED_INITIAL_BALANCE : & str = "1000000000000" ;
2020const TRANSFER_REDUCER : & str = "transfer" ;
2121const REDUCER_FUEL_METRIC : & str = "reducer_wasmtime_fuel_used" ;
22- const REDUCER_FUEL_METRIC_PREFIX : & str = "reducer_wasmtime_fuel_used{" ;
23- const REDUCER_FUEL_METRIC_TOTAL_PREFIX : & str = "reducer_wasmtime_fuel_used_total{" ;
24- const MAX_FUEL_RATIO : f64 = 10.0 ;
22+ const REDUCER_FUEL_METRIC_TOTAL : & str = "reducer_wasmtime_fuel_used_total" ;
23+ const MAX_FUEL_RATIO : f64 = 2.0 ;
2524
2625struct BenchmarkModule {
2726 label : & ' static str ,
@@ -276,7 +275,7 @@ fn transfer_fuel_total(server_url: &str) -> Result<f64> {
276275}
277276
278277fn is_reducer_fuel_metric_line ( line : & str ) -> bool {
279- line. starts_with ( REDUCER_FUEL_METRIC_PREFIX ) || line. starts_with ( REDUCER_FUEL_METRIC_TOTAL_PREFIX )
278+ line. starts_with ( REDUCER_FUEL_METRIC ) || line. starts_with ( REDUCER_FUEL_METRIC_TOTAL )
280279}
281280
282281fn check_transfer_fuel_ratio ( results : & [ BenchmarkResult ] ) -> Result < ( ) > {
You can’t perform that action at this time.
0 commit comments