-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
122869c
commit 7c48e12
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
Binary file modified
BIN
+236 Bytes
(110%)
General_Computer_Info/__pycache__/generalSpecs.cpython-310.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |