Skip to content

Commit

Permalink
CMD Version
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellShibilski-Unkel committed Apr 13, 2024
1 parent 122869c commit 7c48e12
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Binary file modified General_Computer_Info/__pycache__/generalSpecs.cpython-310.pyc
Binary file not shown.
31 changes: 31 additions & 0 deletions ScoringSysCMD.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from Algorthmic_Tests import gobalAlgTest
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
import random

def terminal(l = [], a = 0, b = 0, l2 = []):
startTimer = time.process_time()

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 + 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} | WiFi Test Points: {w}")

l = ["a", "b", "i", "c", "d", ".", "n", ".", "j", ".", "m", "n", "l", "o", "t", ".", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", ".", "q", "r", "s", "t", ";", ".", "w", "x", "y", "z"]
a = random.randint(0, 100000000)
b = random.randint(0, 100000000)
l2 = [random.randint(0, 100000000) for _ in range(random.randrange(8, 10000))]

print(terminal(l, a, b, l2))

0 comments on commit 7c48e12

Please sign in to comment.