Skip to content

Commit 33e4e89

Browse files
authored
Update corebench.py
1 parent 53ca636 commit 33e4e89

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

CoreBench/corebench.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def distroColour():
187187
quit()
188188

189189
#UPDATE THIS WITH EVERY VERSION
190-
version = "1.3.2"
190+
version = "1.3.3"
191191
#UPDATE THIS WITH EVERY VERSION
192192

193193
endLoad = True
@@ -675,8 +675,8 @@ def singleCore(showResults):
675675
cpu_freq = psutil.cpu_freq().current * 1e6
676676
flop_per_cycle = (gflops * 1e9) / cpu_freq
677677

678-
cpuTypeList = ["AVX", "AVX2", "AVX-512", "SSE"]
679-
cpuTypeFlop = [8,16,32,4]
678+
cpuTypeList = ["AVX", "AVX2", "SSE"]
679+
cpuTypeFlop = [8,16,4]
680680

681681
index = min(range(len(cpuTypeFlop)), key=lambda i: abs(cpuTypeFlop[i] - flop_per_cycle))
682682
cpuType = cpuTypeList[index]
@@ -848,7 +848,7 @@ def run_processes():
848848
totalTime+=item
849849

850850
avgTime = totalTime/3
851-
score = round((1/(avgTime/(math.e))*(math.e)*(1000*(1/math.log(coreCount+4,10)))))
851+
score = round((1/(avgTime/(math.e/1.5))*(math.e)*(1000*(1/math.log(coreCount+4,10)))))
852852
clear()
853853

854854
if not dynamicMode and not fullTest:
@@ -1152,6 +1152,7 @@ def avg(colName):
11521152
else:
11531153
plt.savefig("DATA/corebenchdata_{}.png".format(prettyDateUnderscore))
11541154

1155+
subprocess.run(['xdg-open', "DATA/corebenchdata_{}.png".format(prettyDateUnderscore)])
11551156

11561157
def test_speed():
11571158
try:

0 commit comments

Comments
 (0)