From 7717f10d7f21e5befe1b73761f16000a48cb5aa3 Mon Sep 17 00:00:00 2001 From: Cristina Leon Date: Tue, 10 Sep 2024 21:10:54 +0000 Subject: [PATCH 1/2] 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..cf845e1 100755 --- a/app/measure/measure.js +++ b/app/measure/measure.js @@ -186,15 +186,41 @@ angular.module('Measure.Measure', ['ngRoute']) } async function runPT(sid) { + 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 7e1db6a4dc4aec155aff3bafe4ac80e9c61e9787 Mon Sep 17 00:00:00 2001 From: Cristina Leon Date: Tue, 10 Sep 2024 21:22:17 +0000 Subject: [PATCH 2/2] Add var --- 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 cf845e1..25d5577 100755 --- a/app/measure/measure.js +++ b/app/measure/measure.js @@ -186,7 +186,7 @@ angular.module('Measure.Measure', ['ngRoute']) } async function runPT(sid) { - md = [ + var md = [ { client_name: "speed-measurementlab-net", client_session_id: sid,