Skip to content

Commit 2c66e4d

Browse files
Merge pull request #74 from m-lab/sandbox-cristinaleon-conditions2
Add multiple scenarios for BBR-terminated testing
2 parents aac1c25 + 310c9f9 commit 2c66e4d

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

app/measure/measure.js

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,42 @@ angular.module('Measure.Measure', ['ngRoute'])
186186
}
187187

188188
async function runPT(sid) {
189+
const md = [
190+
{
191+
client_name: "speed-measurementlab-net",
192+
client_session_id: sid,
193+
max_cwnd_gain: "512",
194+
},
195+
{
196+
client_name: "speed-measurementlab-net",
197+
client_session_id: sid,
198+
max_elapsed_time: "5",
199+
},
200+
{
201+
client_name: "speed-measurementlab-net",
202+
client_session_id: sid,
203+
max_cwnd_gain: "512",
204+
max_elapsed_time: "5",
205+
},
206+
{
207+
client_name: "speed-measurementlab-net",
208+
client_session_id: sid,
209+
early_exit: "50",
210+
},
211+
{
212+
client_name: "speed-measurementlab-net",
213+
client_session_id: sid,
214+
max_cwnd_gain: "512",
215+
early_exit: "50",
216+
},
217+
]
218+
189219
return pt.test(
190220
{
191221
userAcceptedDataPolicy: true,
192222
downloadworkerfile: "/libraries/pt-download-worker.min.js",
193-
metadata: {
194-
client_name: "speed-measurementlab-net",
195-
client_session_id: sid,
196-
max_cwnd_gain: "512",
197-
}
223+
// Randomly choose to run one of the configurations above.
224+
metadata: md[Math.floor(Math.random()*md.length)]
198225
},
199226
{
200227
serverChosen: function (server) {

0 commit comments

Comments
 (0)