Merge branch 'master' into docker
This commit is contained in:
commit
5c1a7dae3b
4
doc.md
4
doc.md
|
@ -212,9 +212,9 @@ w.postMessage('start '+JSON.stringify(params))
|
|||
* `U`: upload test
|
||||
* `P`: ping + jitter test
|
||||
* `_`: delay 1 second
|
||||
* Default test order: `ID_U_P`
|
||||
* Default override: `ID_P_U` on Firefox if enable_quirks is true because Firefox does not stop upload XHRs right away, it takes 2-3 seconds.
|
||||
* Default test order: `IP_D_U`
|
||||
* __Important:__ Tests can only be run once
|
||||
* __Important:__ On Firefox, it is better to run the upload test last
|
||||
* __enable_quirks__: enables browser-specific optimizations. These optimizations override some of the default settings. They do not override settings that are explicitly set.
|
||||
* Default: `true`
|
||||
* __garbagePhp_chunkSize__: size of chunks sent by garbage.php in megabytes
|
||||
|
|
|
@ -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
|
||||
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_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)
|
||||
|
@ -89,10 +89,6 @@ this.addEventListener('message', function (e) {
|
|||
// ff more precise with 1 upload stream
|
||||
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(typeof s.xhr_dlMultistream === 'undefined'){
|
||||
|
|
2
speedtest_worker.min.js
vendored
2
speedtest_worker.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue