Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low upload speed #137

Closed
pradeepbbl opened this issue Jun 23, 2023 · 6 comments · Fixed by #163, #193 or #195
Closed

Low upload speed #137

pradeepbbl opened this issue Jun 23, 2023 · 6 comments · Fixed by #163, #193 or #195

Comments

@pradeepbbl
Copy link

Hey, Thanks for the awesome lib it work great I'm using it in Prometheus custom exporter running the test every 5m so far work great only issue am having is low upload speed as compare to manual run using speedtest.net. Is anyone know hot fix or improve the upload speed.

# HELP test_speedtest_download Download speed (bit/s)
# TYPE test_speedtest_download gauge
test_speedtest_download{city="xxxx",country="xxxx",provider="xxxx"} 874.6208
# HELP test_speedtest_latency Latency (ms)
# TYPE test_speedtest_latency gauge
test_speedtest_latency{city="xxx",country="xxx",provider="xxxxx"} 9
# HELP test_speedtest_upload Upload speed (bit/s)
# TYPE test_speedtest_upload gauge
test_speedtest_upload{city="xxx",country="xxx",provider="xxxx"} 318.1458 (half the speed in web it was 800+)
@r3inbowari
Copy link
Collaborator

Thank you, @pradeepbbl. Is multi mode enabled?

@r3inbowari
Copy link
Collaborator

image
I test on ~5Gbps/10Gbps(up/down) cloud server. It almost got the max bandwidth.

@pradeepbbl
Copy link
Author

pradeepbbl commented Jun 24, 2023

hey @r3inbowari sorry for the delay response am making the api call instead using the cli with NThread set to 4, but using cli with --multi also provide similar result

% ./speedtest-go -t 4 --multi  --saving-mode  

    ? speedtest-go v1.6.3 @showwin ?

? ISP: XXXXX  
? Found 45 Public Servers

? Test Server: XXXXXXXXXXXX
? Latency: 14.482828ms Jitter: 3.676047ms Min: 5.816104ms Max: 18.408812ms
? Download: 900.83Mbps (used: 1073.88MB)
? Upload: 301.89Mbps (used: 359.88MB)

Result from browser
Screenshot 2023-06-24 at 22 45 42

@r3inbowari
Copy link
Collaborator

r3inbowari commented Jun 24, 2023

I guess this is due to the bandwidth limit of the server. When you select 4 servers, their total downlink bandwidth may be less than 300Mbps. You can adjust the connection number(-t 8 or NThread = 8), according to speedtest-cli this number should be 8. And then it will connect to more different servers.

@cxnky
Copy link

cxnky commented Aug 21, 2023

also getting this.

✓ Test Server: [22069] 0.09km New York, NY (United States) by TeleBermuda International Limited
✓ Latency: 1.099015ms Jitter: 334.839µs Min: 813.339µs Max: 1.942636ms
✓ Download: 0.00Mbps (used: 0.00MB)
✓ Upload: 0.00Mbps (used: 0.00MB)

@r3inbowari
Copy link
Collaborator

also getting this.

✓ Test Server: [22069] 0.09km New York, NY (United States) by TeleBermuda International Limited ✓ Latency: 1.099015ms Jitter: 334.839µs Min: 813.339µs Max: 1.942636ms ✓ Download: 0.00Mbps (used: 0.00MB) ✓ Upload: 0.00Mbps (used: 0.00MB)

This is an unreachable server. related to #162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants