Skip to content

Commit

Permalink
[easy][cli] fix sorting bug in benchmarking code (aptos-labs#13983)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgao1996 authored Jul 11, 2024
1 parent 7e2100f commit c7b3c57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/aptos/src/common/local_simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ pub fn benchmark_transaction_using_debugger(

times.push(t2 - t1);
}
times.sort();

times[n / 2]
};
Expand Down

0 comments on commit c7b3c57

Please sign in to comment.