@@ -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