Skip to content

Commit

Permalink
CHG: Display improvements - skip similar results
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglauer committed Oct 9, 2024
1 parent 3e8121d commit 7586df2
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 3 deletions.
34 changes: 31 additions & 3 deletions resource/examples/benchmarks/Benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@


# Sorting:
IsGood.sort(key=dict(zip(IsGood, RunMulti)).get)
#IsGood.sort(key=dict(zip(IsGood, RunMulti)).get)

IsGood = [x for _,x in sorted(zip(RunMulti, IsGood))]
Reference = [x for _,x in sorted(zip(RunMulti, Reference))]
Expand All @@ -197,13 +197,41 @@
RunSingle = [x for _,x in sorted(zip(RunMulti, RunSingle))]
RunMulti = [x for _,x in sorted(zip(RunMulti, RunMulti))]

# If we have more than (RefernceCount+1) delete the weakest referneces
# If we have more than (RefernceCount+1) first cull results which are within 5% of an higher value
HighestRef=-1
for i in range(len(Reference) - 1, -1, -1):
if HighestRef < 0:
if IsGood[i] == True:
HighestRef = i
else:
if Reference[0] == "*** this ***":
HighestRef = i
continue

if RunMulti[i] > 0.95*RunMulti[HighestRef]:
IsGood[i] = False
print("Deleting {}".format(CPUNames[i]))
else:
HighestRef = i

Reference = [a for a, keep in zip(Reference, IsGood) if keep]
HostNames = [a for a, keep in zip(HostNames, IsGood) if keep]
CPUSockets = [a for a, keep in zip(CPUSockets, IsGood) if keep]
CPUNames = [a for a, keep in zip(CPUNames, IsGood) if keep]
OSNames = [a for a, keep in zip(OSNames, IsGood) if keep]
OSVersions = [a for a, keep in zip(OSVersions, IsGood) if keep]
RunSingle = [a for a, keep in zip(RunSingle, IsGood) if keep]
RunMulti = [a for a, keep in zip(RunMulti, IsGood) if keep]
IsGood = [a for a, keep in zip(IsGood, IsGood) if keep]


# If we have more than (RefernceCount+1) delete the weakest references
while len(Reference) > ReferenceCount+1:
# Find which one to delete
ToDelete = 0
if Reference[0] == "*** this ***":
ToDelete = 1
print("Deleting %: %".format(ToDelete, CPUNames[ToDelete]))
print("Deleting {}".format(CPUNames[ToDelete]))
del IsGood[ToDelete]
del Reference[ToDelete]
del HostNames[ToDelete]
Expand Down
47 changes: 47 additions & 0 deletions resource/examples/benchmarks/References/galatea.bm
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Benchmark summary file

HostName: galatea

OSFlavour: ubuntu
OSVersion: 24.04
Kernel: 6.8.0-45-generic

CPUModel: AMD Ryzen 9 9950X 16-Core Processor
CPUName: Ryzen 9 9950X
CPUSockets: 1
CPUCoresPerSocket: 16
CPUThreadsPerCore: 2
Cores: 16
Threads: 32

ROOTVersion: 6.28/12
Geant4Version: 10.2.3

MEGAlibVersion: 4.00.00
MEGAlibGitHash: d9afacb2657c07307742f51f9abdd54261709acc 2024-07-23
MEGAlibOptimization:

# Cosima
DurationCosimaSingle: 12.482
EventsPerSecondCosimaSingle: 8011.536
DurationCosimaMultiple: 20.526
EventsPerSecondCosimaMultiple: 155899.834

# Revan
DurationRevanSingle: 5.411
EventsPerSecondRevanSingle: 18480.872
DurationRevanMultiple: 5.094
EventsPerSecondRevanMultiple: 628190.027

# ResponseCreator
DurationResponseCreatorSingle: 6.013
EventsPerSecondResponseCreatorSingle: 16630.633
DurationResponseCreatorMultiple: 12.838
EventsPerSecondResponseCreatorMultiple: 249260.009

# MimrecImaging
DurationMimrecImagingSingle: 24.462
EventsPerSecondMimrecImagingSingle: 4087.973
DurationMimrecImagingMultiple: 4.330
EventsPerSecondMimrecImagingMultiple: 23094.688

0 comments on commit 7586df2

Please sign in to comment.