Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e465ddf45f |
@@ -311,6 +311,13 @@ for (const { history, latencies, statistics } of [
|
|||||||
latencies: [10, 40, 20, 25],
|
latencies: [10, 40, 20, 25],
|
||||||
statistics: { min: 10, max: 40, average: 24, median: 23 },
|
statistics: { min: 10, max: 40, average: 24, median: 23 },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// Sorted as text rather than as numbers, these answers would put
|
||||||
|
// 100 in the middle. The average, 39.67, is rounded.
|
||||||
|
history: "answers with different numbers of digits",
|
||||||
|
latencies: [100, 9, 10],
|
||||||
|
statistics: { min: 9, max: 100, average: 40, median: 10 },
|
||||||
|
},
|
||||||
]) {
|
]) {
|
||||||
test(`a target's min, max, average and median latency over ${history}`, () => {
|
test(`a target's min, max, average and median latency over ${history}`, () => {
|
||||||
const host = hostAfter(latencies);
|
const host = hostAfter(latencies);
|
||||||
|
|||||||
Reference in New Issue
Block a user