MiguelNdeCarvalho/speedtest-exporter

Docker speedtest results are not the same using the speedtest-cli locally

Closed this issue · 9 comments

Hello,

I deployed this application on my Home Server using Docker, and the results are slowers using this application rather than using the Speedtest-cli.

Here is a comparison:
image

The first line is the output of this speedtest-exporter. I let it ran a few hours and the results are not changing. Bellow the first line, this is the output of the speedtest-cli I just downloaded for the test. You can see there's a huge difference of bandwidth between them.


I am running on Windows 11 21H2 with Docker version 20.10.7

Docker command to create the container: docker run -d --name=speedtest-exporter -p 9798:9798 --restart unless-stopped miguelndecarvalho/speedtest-exporter

Hey,

Sorry for the late response, are you running the docker image inside of the Windows machine?

Thanks,
MiguelNdeCarvalho

Hello @MiguelNdeCarvalho

Yes I am using Docker desktop for Windows

Hey,

I'm afraid that I can't help you any further because the docker on Windows should be throttling the testes, that's why you can't get the full speed.

Thanks,
MiguelNdeCarvalho

Hello,

Sorry for the late reply! As you say this is due to Docker on Windows. There's no fix for this.

Hey,

@Madriax I am not sure though! Do you have a Linux machine where you can test it?

Thanks,
MiguelNdeCarvalho

I tested on both Linux and Windows again, here are the results:

  • Windows: Ping=7.9ms Download=152.75Mbps Upload=303.4Mbps

  • Linux: Ping=7.171ms Download=941.58Mbps Upload=605.66Mbps

I tested on both Linux and Windows again, here are the results:

  • Windows: Ping=7.9ms Download=152.75Mbps Upload=303.4Mbps

  • Linux: Ping=7.171ms Download=941.58Mbps Upload=605.66Mbps

So in Linux we have the real values, correct?

Yes exactly !

I think there is nothing we can do about it! That should be related to the Windows network used by docker containers