Created
January 5, 2023 15:29
-
-
Save maedoc/9877677f4e9a91ee6e232d864cfe3242 to your computer and use it in GitHub Desktop.
Quick benchmarking with scimark4
This file contains hidden or 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
import subprocess | |
for nc in [1,4,8]: | |
for mb in [1,4,32]: | |
cmd = ['./scimark4', '-huge', str(mb)] | |
procs = [subprocess.Popen(cmd, stdout=subprocess.PIPE) for _ in range(nc)] | |
[_.wait() for _ in procs] | |
scores = [] | |
for proc in procs: | |
for line in proc.stdout.readlines(): | |
line = line.decode('ascii') | |
if 'Composite' in line: | |
scores.append(float(line.strip().split()[-1])) | |
print(nc, mb, sum(scores)/len(scores)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment