Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan committed Sep 22, 2023
1 parent 263e995 commit 2881519
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/attack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ func TestAttack(t *testing.T) {
},
},
MethodIndex: 0,
Frequency: 10,
Duration: 1,
Frequency: 110,
Duration: 2,
}
metrics := atk.Attack()
fmt.Printf("99th percentile: %s\n", metrics.Latencies.P99)
fmt.Printf("max percentile: %s\n", metrics.Latencies.Max)
fmt.Printf("mean percentile: %s\n", metrics.Latencies.Mean)
fmt.Printf("total percentile: %s\n", metrics.Latencies.Total)

fmt.Printf("total percentile: %v\n", metrics.StatusCodes)
})
}

0 comments on commit 2881519

Please sign in to comment.