-
Notifications
You must be signed in to change notification settings - Fork 0
Home
rany2 edited this page Dec 10, 2023
·
1 revision
Welcome to the speedtest-cli wiki!
import speedtest
servers = []
# If you want to test against a specific server
# servers = [1234]
threads = None
# If you want to use a single threaded test
# threads = 1
s = speedtest.Speedtest()
s.get_servers(servers)
s.get_best_server()
s.download(threads=threads)
s.upload(threads=threads)
s.results.share()
results_dict = s.results.dict()- download - bits/s
- upload - bits/s
s.upload(pre_allocate=False)source = "192.168.1.100"
s = speedtest.Speedtest(source_address=source)
s.get_best_server()
s.download()
s.upload()