Speedtest (Speedtest v1.1.0) View Source
Speedtest.net client for Elixir.
Link to this section Summary
Functions
Perform a speedtest.net "ping" to determine which speedtest.net server has the lowest latency
Limit servers to the closest speedtest.net servers based on geographic distance
Determine distance between sets of [lat,lon] in km
Test download speed against speedtest.net
Retrieve a the list of speedtest.net servers, optionally filtered to servers matching those specified in the servers argument
Setup the base speedtest
Ping an IP and return a tuple with the time
Run the full speedtest.net test
Test upload speed against speedtest.net
Link to this section Functions
Perform a speedtest.net "ping" to determine which speedtest.net server has the lowest latency
example:
Speedtest.choose_best_server([]})
Limit servers to the closest speedtest.net servers based on geographic distance
example:
Speedtest.choose_closest_servers()
Determine distance between sets of [lat,lon] in km
example:
Speedtest.distance(%Speedtest{})
Test download speed against speedtest.net
example:
Speedtest.download(%Speedtest{})
Retrieve a the list of speedtest.net servers, optionally filtered to servers matching those specified in the servers argument
example:
Speedtest.fetch_servers(%Speedtest{})
Setup the base speedtest
Examples
iex> Speedtest.init()
{:ok, %Speedtest{config: [],exclude: nil,include: nil,result: nil,selected_server: nil,servers: [],threads: nil}}
Ping an IP and return a tuple with the time
example:
Speedtest.ping("127.0.0.1")
Run the full speedtest.net test
example:
Speedtest.run()
Test upload speed against speedtest.net
example:
Speedtest.upload(%Speedtest{})