Skip to content

Commit 7c48e12

Browse files
CMD Version
1 parent 122869c commit 7c48e12

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

236 Bytes
Binary file not shown.

ScoringSysCMD.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from Algorthmic_Tests import gobalAlgTest
2+
from Simple_Tests import simpleTests
3+
from Sorting_Tests import sortingTest
4+
from General_Computer_Info import generalSpecs
5+
from WiFi_Test import wifi
6+
import time
7+
import numpy as np
8+
import random
9+
10+
def terminal(l = [], a = 0, b = 0, l2 = []):
11+
startTimer = time.process_time()
12+
13+
alg = gobalAlgTest.algorithmTest()
14+
sim = simpleTests.simpleTest(l, a, b)
15+
s = sortingTest.sortingTest(l2)
16+
w = wifi.speedTest()
17+
18+
endTimer = time.process_time()
19+
20+
totalTime = (endTimer - startTimer)
21+
22+
totalPoints = (alg + sim + s + w) // totalTime * 0.1
23+
24+
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}")
25+
26+
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"]
27+
a = random.randint(0, 100000000)
28+
b = random.randint(0, 100000000)
29+
l2 = [random.randint(0, 100000000) for _ in range(random.randrange(8, 10000))]
30+
31+
print(terminal(l, a, b, l2))

0 commit comments

Comments
 (0)