finished
This commit is contained in:
Binary file not shown.
@@ -4,7 +4,8 @@ import highSchool
|
||||
import divideConcur
|
||||
|
||||
def main():
|
||||
count = 1
|
||||
count = 32
|
||||
power = 0
|
||||
while True:
|
||||
highTime = 0
|
||||
dcTime = 0
|
||||
@@ -14,15 +15,22 @@ def main():
|
||||
P = problemGenerator.GenerateProblem(count)
|
||||
Q = problemGenerator.GenerateProblem(count)
|
||||
highTimeStart = time.time()
|
||||
highSchool.HighSchool(count*32, P, Q)
|
||||
highTime+=(time.time()-highTimeStart)
|
||||
highSchool.HighSchool(count, P, Q)
|
||||
highTime += (time.time()-highTimeStart)
|
||||
|
||||
dcTimeStart = time.time()
|
||||
divideConcur.DivideConcur(count*32, P, Q)
|
||||
dcTime+=(time.time()-dcTimeStart)
|
||||
divideConcur.DivideConcur(count, P, Q)
|
||||
dcTime += (time.time()-dcTimeStart)
|
||||
print(i)
|
||||
count += 1
|
||||
|
||||
print("Highschool Time: ", highTime/10)
|
||||
print("DC Time: ", dcTime/10)
|
||||
saveArray = [count, highTime/10, dcTime/10]
|
||||
print(saveArray)
|
||||
with open("results.txt", "a") as myfile:
|
||||
print(str(saveArray), file=myfile)
|
||||
myfile.flush()
|
||||
count += count
|
||||
myfile.close()
|
||||
|
||||
main()
|
||||
0
PolyMultiplication/results.txt
Normal file
0
PolyMultiplication/results.txt
Normal file
Reference in New Issue
Block a user