Skip to content

Commit

Permalink
Merge pull request #74 from m-lab/sandbox-cristinaleon-conditions2
Browse files Browse the repository at this point in the history
Add multiple scenarios for BBR-terminated testing
  • Loading branch information
cristinaleonr authored Sep 11, 2024
2 parents aac1c25 + 310c9f9 commit 2c66e4d
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions app/measure/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,42 @@ angular.module('Measure.Measure', ['ngRoute'])
}

async function runPT(sid) {
const md = [
{
client_name: "speed-measurementlab-net",
client_session_id: sid,
max_cwnd_gain: "512",
},
{
client_name: "speed-measurementlab-net",
client_session_id: sid,
max_elapsed_time: "5",
},
{
client_name: "speed-measurementlab-net",
client_session_id: sid,
max_cwnd_gain: "512",
max_elapsed_time: "5",
},
{
client_name: "speed-measurementlab-net",
client_session_id: sid,
early_exit: "50",
},
{
client_name: "speed-measurementlab-net",
client_session_id: sid,
max_cwnd_gain: "512",
early_exit: "50",
},
]

return pt.test(
{
userAcceptedDataPolicy: true,
downloadworkerfile: "/libraries/pt-download-worker.min.js",
metadata: {
client_name: "speed-measurementlab-net",
client_session_id: sid,
max_cwnd_gain: "512",
}
// Randomly choose to run one of the configurations above.
metadata: md[Math.floor(Math.random()*md.length)]
},
{
serverChosen: function (server) {
Expand Down

0 comments on commit 2c66e4d

Please sign in to comment.