-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScoringSysCMD.py
34 lines (25 loc) · 1.22 KB
/
ScoringSysCMD.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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))]
def run():
return terminal(l, a, b, l2)
print(run(l, a, b, l2))