speedtest icon indicating copy to clipboard operation
speedtest copied to clipboard

Use compressed file (Ex .zip) to test download speed

Open harryhack opened this issue 3 years ago • 5 comments

I know that librespeed use file garbage.php to create file random.dat . This file is used to test download speed. But I need to replace it by compressed file (Ex .zip,..) to do that. Anyone help me please ?

harryhack avatar Mar 30 '21 07:03 harryhack

Why would you need to download a compressed file? It should not matter since it's just for downloading bits to measure the maximum speed. The content doesn't matter.

michaelarnauts avatar Aug 13 '21 15:08 michaelarnauts

It needs to be incompressible data, you can't just use a file full of zeros

adolfintel avatar Aug 13 '21 15:08 adolfintel

I think OP was trying to do a "backend-less" installation, using a large file instead of garbage.php. This is technically supported but not really recommended

adolfintel avatar Aug 13 '21 15:08 adolfintel

Just like OP, I am also interested in this. I understand that it makes no sense to use an actual file instead of the garbage.php. However in cases where you want to test the server with a remote mounted file to check how fast it can be served from that server, that would be really useful. In my case I have a gdrive mount in the server, and I am interested how fast can it serve to client side.

aka-charos avatar Feb 09 '22 13:02 aka-charos

@aka-charos You can do it, just set url_dl to something other than garbage.php (path relative to speedtest.js). Keep in mind that the file has to be relatively large (hundreds of megabytes) and incompressible.

adolfintel avatar Feb 09 '22 13:02 adolfintel