wifi test speed code example
Example 1: wifi test
If you are reading this your wifi is working
Example 2: speed test
//Quintin is 'n klip haha
const string tempfile = "tempfile.tmp";
System.Net.WebClient webClient = new System.Net.WebClient();
Console.WriteLine("Downloading file....");
System.Diagnostics.Stopwatch sw = System.Diagnostics.Stopwatch.StartNew();
webClient.DownloadFile("http://dl.google.com/googletalk/googletalk-setup.exe", tempfile);
sw.Stop();
System.IO.FileInfo fileInfo = new System.IO.FileInfo(tempfile);
long speed = fileInfo.Length / sw.Elapsed.Seconds;
Console.WriteLine("Download duration: {0}", sw.Elapsed);
Console.WriteLine("File size: {0}", fileInfo.Length.ToString("N0"));
Console.WriteLine("Speed: {0} bps ", speed.ToString("N0"));
Console.WriteLine("Press any key to continue...");
Console.ReadLine();
Example 3: wifi tester
I had problems with WiFi now you do!! Unlucky.
Example 4: speedtest
import speedtest
def get_final_speed():
rawspeed = speedtest.Speedtest().download()
roundedspeed = round(rawspeed)
finalspeed = roundedspeed / 1e+6
return finalspeed
def looped_av(y):
finalspeeds = 0
for i in range(y):
x = get_final_speed()
print(f'{i+1}. {x}mb/s')
return finalspeeds
while True:
repeat = input('1, 2, 3 or press {ENTER} to quit\n>>>')
if repeat == '1':
x = get_final_speed()
print(f'done, your download speed is {x}mb/s')
elif repeat == '2':
x = looped_av(2)
print(f'done, your average download speed is {x}mb/s')
elif repeat == '3':
times_through = int(input('how many times do you want the test to run?\n>>>'))
x = looped_av(times_through)
print(f'done, your average download speed is {x}mb/s')
else:
break
Example 5: ìnternet speed test
Speedtest by Ookla :)
Example 6: speedtest
You can use WebTools, it's an addon that gather the most useful and basic tools
such as a speedtest, a dictionary, a translator, a youtube convertor and
many others (there are ten of them).
You can access them in two clics, without having to open a new tab
and without having to search for them !
-Chrome Link :
https://chrome.google.com/webstore/detail/webtools/ejnboneedfadhjddmbckhflmpnlcomge/
Firefox link : https://addons.mozilla.org/fr/firefox/addon/webtools/