Przeglądaj źródła

Changed default test order to IP_D_U

dosse91 8 lat temu
rodzic
commit
2e2f2c63c6
3 zmienionych plików z 3 dodań i 7 usunięć
  1. 2 2
      doc.md
  2. 1 5
      speedtest_worker.js
  3. 0 0
      speedtest_worker.min.js

+ 2 - 2
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

+ 1 - 5
speedtest_worker.js

@@ -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'){

Plik diff jest za duży
+ 0 - 0
speedtest_worker.min.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików