|
@@ -22,7 +22,7 @@ function twarn(s){log+=Date.now()+' WARN: '+s+'\n'; console.warn(s)}
|
|
|
|
|
|
|
|
// test settings. can be overridden by sending specific values with the start command
|
|
// test settings. can be overridden by sending specific values with the start command
|
|
|
var settings = {
|
|
var settings = {
|
|
|
- test_order: "ID_U_P", //order in which tests will be performed as a string. D=Download, U=Upload, P=Ping+Jitter, I=IP, _=1 second delay
|
|
|
|
|
|
|
+ test_order: "IP_D_U", //order in which tests will be performed as a string. D=Download, U=Upload, P=Ping+Jitter, I=IP, _=1 second delay
|
|
|
time_ul: 15, // duration of upload test in seconds
|
|
time_ul: 15, // duration of upload test in seconds
|
|
|
time_dl: 15, // duration of download test in seconds
|
|
time_dl: 15, // duration of download test in seconds
|
|
|
time_ulGraceTime: 3, //time to wait in seconds before actually measuring ul speed (wait for buffers to fill)
|
|
time_ulGraceTime: 3, //time to wait in seconds before actually measuring ul speed (wait for buffers to fill)
|
|
@@ -89,10 +89,6 @@ this.addEventListener('message', function (e) {
|
|
|
// ff more precise with 1 upload stream
|
|
// ff more precise with 1 upload stream
|
|
|
settings.xhr_ulMultistream = 1
|
|
settings.xhr_ulMultistream = 1
|
|
|
}
|
|
}
|
|
|
- if(typeof s.test_order === 'undefined'){
|
|
|
|
|
- // ff more precise if upload test is performed after ping because upload XHRs are not interrupted immediately
|
|
|
|
|
- settings.test_order= 'ID_P_U'
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
if (/Edge.(\d+\.\d+)/i.test(ua)) {
|
|
if (/Edge.(\d+\.\d+)/i.test(ua)) {
|
|
|
if(typeof s.xhr_dlMultistream === 'undefined'){
|
|
if(typeof s.xhr_dlMultistream === 'undefined'){
|