Merge branch 'master' into docker
This commit is contained in:
commit
0279f06c04
6
doc.md
6
doc.md
|
@ -223,11 +223,11 @@ w.postMessage('start '+JSON.stringify(params))
|
|||
* __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
|
||||
* Default: `20`
|
||||
* Default: `100`
|
||||
* Recommended: `>=10`
|
||||
* Maximum: `100`
|
||||
* Maximum: `1024`
|
||||
* __xhr_dlMultistream__: how many streams should be opened for the download test
|
||||
* Default: `10`
|
||||
* Default: `6`
|
||||
* Recommended: `>=3`
|
||||
* Default override: 3 on Edge if enable_quirks is true
|
||||
* Default override: 5 on Chromium-based if enable_quirks is true
|
||||
|
|
|
@ -19,7 +19,7 @@ $data=openssl_random_pseudo_bytes(1048576);
|
|||
// Deliver chunks of 1048576 bytes
|
||||
$chunks=isset($_GET['ckSize']) ? intval($_GET['ckSize']) : 4;
|
||||
if(empty($chunks)){$chunks = 4;}
|
||||
if($chunks>100){$chunks = 100;}
|
||||
if($chunks>1024){$chunks = 1024;}
|
||||
for($i=0;$i<$chunks;$i++){
|
||||
echo $data;
|
||||
flush();
|
||||
|
|
|
@ -50,13 +50,13 @@ var settings = {
|
|||
url_getIp: "getIP.php", // path to getIP.php relative to this js file, or a similar thing that outputs the client's ip
|
||||
getIp_ispInfo: true, //if set to true, the server will include ISP info with the IP address
|
||||
getIp_ispInfo_distance: "km", //km or mi=estimate distance from server in km/mi; set to false to disable distance estimation. getIp_ispInfo must be enabled in order for this to work
|
||||
xhr_dlMultistream: 10, // number of download streams to use (can be different if enable_quirks is active)
|
||||
xhr_dlMultistream: 6, // number of download streams to use (can be different if enable_quirks is active)
|
||||
xhr_ulMultistream: 3, // number of upload streams to use (can be different if enable_quirks is active)
|
||||
xhr_multistreamDelay: 300, //how much concurrent requests should be delayed
|
||||
xhr_ignoreErrors: 1, // 0=fail on errors, 1=attempt to restart a stream if it fails, 2=ignore all errors
|
||||
xhr_dlUseBlob: false, // if set to true, it reduces ram usage but uses the hard drive (useful with large garbagePhp_chunkSize and/or high xhr_dlMultistream)
|
||||
xhr_ul_blob_megabytes: 20, //size in megabytes of the upload blobs sent in the upload test (forced to 4 on chrome mobile)
|
||||
garbagePhp_chunkSize: 20, // size of chunks sent by garbage.php (can be different if enable_quirks is active)
|
||||
garbagePhp_chunkSize: 100, // size of chunks sent by garbage.php (can be different if enable_quirks is active)
|
||||
enable_quirks: true, // enable quirks for specific browsers. currently it overrides settings to optimize for specific browsers, unless they are already being overridden with the start command
|
||||
ping_allowPerformanceApi: true, // if enabled, the ping test will attempt to calculate the ping more precisely using the Performance API. Currently works perfectly in Chrome, badly in Edge, and not at all in Firefox. If Performance API is not supported or the result is obviously wrong, a fallback is provided.
|
||||
overheadCompensationFactor: 1.06, //can be changed to compensatie for transport overhead. (see doc.md for some other values)
|
||||
|
|
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