From 4d9efaeb08a604de58da8d05078d3cd5bf8941b1 Mon Sep 17 00:00:00 2001 From: Cristina Leon Date: Tue, 10 Sep 2024 21:46:06 +0000 Subject: [PATCH 1/3] Add multiple scenarios for BBR-terminated testing --- app/measure/measure.js | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/app/measure/measure.js b/app/measure/measure.js index 9bc5b1e..25d5577 100755 --- a/app/measure/measure.js +++ b/app/measure/measure.js @@ -186,15 +186,41 @@ angular.module('Measure.Measure', ['ngRoute']) } async function runPT(sid) { + var 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", - } + metadata: md[Math.floor(Math.random()*md.length)] }, { serverChosen: function (server) { From e3afebe7021381d5863dfc115fad718c932928c6 Mon Sep 17 00:00:00 2001 From: Cristina Leon Date: Tue, 10 Sep 2024 21:51:43 +0000 Subject: [PATCH 2/3] Use const --- app/measure/measure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/measure/measure.js b/app/measure/measure.js index 25d5577..a2f0400 100755 --- a/app/measure/measure.js +++ b/app/measure/measure.js @@ -186,7 +186,7 @@ angular.module('Measure.Measure', ['ngRoute']) } async function runPT(sid) { - var md = [ + const md = [ { client_name: "speed-measurementlab-net", client_session_id: sid, From 310c9f92cb931dbd102b0d76eaebd04d486d9669 Mon Sep 17 00:00:00 2001 From: Cristina Leon Date: Wed, 11 Sep 2024 15:26:37 +0000 Subject: [PATCH 3/3] Add comment --- app/measure/measure.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/measure/measure.js b/app/measure/measure.js index a2f0400..9514573 100755 --- a/app/measure/measure.js +++ b/app/measure/measure.js @@ -220,6 +220,7 @@ angular.module('Measure.Measure', ['ngRoute']) { userAcceptedDataPolicy: true, downloadworkerfile: "/libraries/pt-download-worker.min.js", + // Randomly choose to run one of the configurations above. metadata: md[Math.floor(Math.random()*md.length)] }, {