Points to new domain
This commit is contained in:
parent
152a69008b
commit
ba58805e47
3 changed files with 10 additions and 7 deletions
|
@ -5,14 +5,14 @@ No Flash, No Java, No Websocket, No Bullshit.
|
|||
This is a very lightweight Speedtest implemented in Javascript, using XMLHttpRequest and Web Workers.
|
||||
|
||||
## Try it
|
||||
[Take a Speedtest](http://speedtest.adolfintel.com)
|
||||
[Take a Speedtest](http://speedtest.fdossena.com)
|
||||
|
||||
## Compatibility
|
||||
Only modern browsers are supported (Edge 12+)
|
||||
|
||||
## Requirements
|
||||
- A reasonably fast web server
|
||||
- Some way to generate garbage data using either the included PHP script, a [big file of random data](http://downloads.adolfintel.com/geth.php?r=speedtest-bigfile), or a symlink to /dev/urandom
|
||||
- Some way to generate garbage data using either the included PHP script, a [big file of random data](http://downloads.fdossena.com/geth.php?r=speedtest-bigfile), or a symlink to /dev/urandom
|
||||
- Your server must accept large POST requests (up to 10 Megabytes), otherwise the upload test will fail
|
||||
- Client side, there must not be any type of buffering (such as a proxy), or you may get incorrect results
|
||||
- It's also better if your server does not use compression, but it's not mandatory
|
||||
|
@ -21,7 +21,7 @@ Only modern browsers are supported (Edge 12+)
|
|||
See the examples, it's really simple.
|
||||
|
||||
## License
|
||||
Copyright (C) 2016 Federico Dossena
|
||||
Copyright (C) 2016-2017 Federico Dossena
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as published by
|
||||
|
|
|
@ -17,7 +17,7 @@ header("Pragma: no-cache");
|
|||
// Generate data
|
||||
$data=openssl_random_pseudo_bytes(1048576);
|
||||
// Deliver chunks of 1048576 bytes
|
||||
while(1){
|
||||
for($i=0;$i<100;$i++){
|
||||
echo $data;
|
||||
flush();
|
||||
}
|
||||
|
|
|
@ -82,9 +82,12 @@ function ulTest(done){
|
|||
}.bind(this);
|
||||
xhr.open("POST",settings.url_ul+"?r="+Math.random(),true);
|
||||
xhr.setRequestHeader('Content-Encoding','identity');
|
||||
var r=new ArrayBuffer(10485760);
|
||||
try{var w=new Float32Array(r);for(var i=0;i<w.length;i++)w[i]=Math.random();}catch(e){}
|
||||
xhr.send(r);
|
||||
var r=new ArrayBuffer(1048576);
|
||||
try{r=new Float32Array(r);for(var i=0;i<r.length;i++)r[i]=Math.random();}catch(e){}
|
||||
var req=[];
|
||||
for(var i=0;i<20;i++) req.push(r);
|
||||
req=new Blob(req);
|
||||
xhr.send(req);
|
||||
}
|
||||
function pingTest(done){
|
||||
var prevT=null,ping=0.0,i=0;
|
||||
|
|
Loading…
Reference in a new issue