Skip to content

Commit

Permalink
WiFi Speed Test
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellShibilski-Unkel committed Mar 7, 2024
1 parent 6f05be6 commit 7236819
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ScoringSys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from Simple_Tests import simpleTests
from Sorting_Tests import sortingTest
from General_Computer_Info import generalSpecs
from WiFi_Test import wifi
import time
import numpy as np

Expand All @@ -11,11 +12,12 @@ def allTests(l = [], a = 0, b = 0, l2 = []):
alg = gobalAlgTest.algorithmTest()
sim = simpleTests.simpleTest(l, a, b)
s = sortingTest.sortingTest(l2)
w = wifi.speedTest()

endTimer = time.process_time()

totalTime = (endTimer - startTimer)

totalPoints = (alg + sim + s) // totalTime * 0.1
totalPoints = (alg + sim + s + w) // totalTime * 0.1

return str(f"Your {generalSpecs.CPU()} Has A Total Points Of: {np.round(totalPoints, 2)} | Total Time: {totalTime}s | Algorithm Test Points: {alg} | Simple Test Points: {sim} | Sorting Test Points: {s}")
return str(f"Your {generalSpecs.CPU()} Has A Total Points Of: {np.round(totalPoints, 2)} | Total Time: {totalTime}s | Algorithm Test Points: {alg} | Simple Test Points: {sim} | Sorting Test Points: {s} | WiFi Test Points: {w}")
Binary file added WiFi_Test/__pycache__/wifi.cpython-310.pyc
Binary file not shown.
11 changes: 11 additions & 0 deletions WiFi_Test/wifi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import speedtest
import numpy as np


def speedTest():
speed = speedtest.Speedtest()

download = speed.download()
upload = speed.upload()

return np.average([download, upload])

0 comments on commit 7236819

Please sign in to comment.