-
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
4d09480
commit 578e2e5
Showing
28 changed files
with
219 additions
and
104 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,42 @@ | ||
from Algorthmic_Tests import primeCounter | ||
from Algorthmic_Tests import waveFunction | ||
import time | ||
|
||
|
||
def algorithmTest(): | ||
startTimer = time.process_time() | ||
startTimer2 = time.process_time() | ||
|
||
hundred = primeCounter.primeCounter(101) | ||
|
||
endTimer2 = time.process_time() | ||
|
||
startTimer3 = time.process_time() | ||
|
||
thousand = primeCounter.primeCounter(1001) | ||
|
||
endTimer3 = time.process_time() | ||
|
||
startTimer4 = time.process_time() | ||
|
||
tenthousand = primeCounter.primeCounter(10001) | ||
|
||
endTimer4 = time.process_time() | ||
|
||
startTimer5 = time.process_time() | ||
|
||
waveFunction.waveFunc(1000) | ||
|
||
endTimer5 = time.process_time() | ||
|
||
endTimer = time.process_time() | ||
|
||
pointList = [] | ||
|
||
pointList.append((endTimer2 - startTimer2) // 0.0005 * 0.1) | ||
pointList.append((endTimer3 - startTimer3) // 0.0005 * 0.1) | ||
pointList.append((endTimer4 - startTimer4) // 0.0005 * 0.1) | ||
pointList.append((endTimer5 - startTimer5) // 0.0005 * 0.1) | ||
pointList.append(sum(pointList) + (endTimer - startTimer) // 10) | ||
|
||
return pointList[-1] |
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
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
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
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
from Algorthmic_Tests import gobalAlgTest | ||
from Simple_Tests import simpleTests | ||
from Sorting_Tests import sortingTest | ||
from General_Computer_Info import generalSpecs | ||
import time | ||
import numpy as np | ||
|
||
def allTests(l = [], a = 0, b = 0, l2 = []): | ||
startTimer = time.process_time() | ||
|
||
alg = gobalAlgTest.algorithmTest() | ||
sim = simpleTests.simpleTest(l, a, b) | ||
s = sortingTest.sortingTest(l2) | ||
|
||
endTimer = time.process_time() | ||
|
||
totalTime = (endTimer - startTimer) | ||
|
||
totalPoints = (alg + sim + s) // 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}") |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
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,42 @@ | ||
from Simple_Tests import allBasicMath, forBreakTest, forTest | ||
import time | ||
|
||
|
||
def simpleTest(listInput, num1, num2): | ||
startTimer = time.process_time() | ||
startTimer2 = time.process_time() | ||
|
||
allBM = allBasicMath.math(num1, num2) | ||
|
||
endTimer2 = time.process_time() | ||
|
||
startTimer3 = time.process_time() | ||
|
||
for1 = forTest.forLoop(listInput) | ||
|
||
endTimer3 = time.process_time() | ||
|
||
startTimer4 = time.process_time() | ||
|
||
for2 = forBreakTest.forLoop(listInput) | ||
|
||
endTimer4 = time.process_time() | ||
|
||
endTimer = time.process_time() | ||
|
||
pointList = [] | ||
|
||
pointList.append((endTimer2 - startTimer2) * 0.0005) | ||
pointList.append((endTimer3 - startTimer3) * 0.0005) | ||
pointList.append((endTimer4 - startTimer4) * 0.0005) | ||
|
||
points = sum(pointList) | ||
|
||
if points == 0: | ||
points = 1 | ||
else: | ||
points = 0 | ||
|
||
pointList.append(points + (endTimer - startTimer) * 0.1) | ||
|
||
return pointList[-1] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
Oops, something went wrong.