Skip to content

Commit

Permalink
list queries in same order as the first trace file
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Sep 19, 2024
1 parent 584a1c6 commit 5511f6f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cmd/vtbenchstat/vtbenchstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,10 @@ func compareTraces(file1, file2 TraceFile) {
var s1RouteCalls, s1DataSent, s1MemoryRows, s1ShardsQueried int
var s2RouteCalls, s2DataSent, s2MemoryRows, s2ShardsQueried int

for query, s1 := range summary1 {
s2, ok := summary2[query]
if !ok {
for _, q := range file1.Queries {
s1, ok1 := summary1[q.Query]
s2, ok2 := summary2[q.Query]
if !ok1 || !ok2 {
continue
}
totalQueries++
Expand Down

0 comments on commit 5511f6f

Please sign in to comment.