Speedtest v0.1.0 Speedtest 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

Link to this function

choose_best_server(servers)

View Source

Perform a speedtest.net "ping" to determine which speedtest.net server has the lowest latency

Link to this function

choose_closest_servers(servers \\ [], amount \\ 2)

View Source

Limit servers to the closest speedtest.net servers based on geographic distance

Link to this function

distance(speedtest \\ %Speedtest{})

View Source

Determine distance between sets of [lat,lon] in km

Link to this function

download(speedtest \\ %Speedtest{})

View Source

Test download speed against speedtest.net

Link to this function

fetch_servers(speedtest \\ %Speedtest{})

View Source

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

Link to this function

upload(speedtest \\ %Speedtest{})

View Source

Test upload speed against speedtest.net