Skip to content

Instantly share code, notes, and snippets.

@maedoc
Created January 5, 2023 15:29
Show Gist options
  • Save maedoc/9877677f4e9a91ee6e232d864cfe3242 to your computer and use it in GitHub Desktop.
Save maedoc/9877677f4e9a91ee6e232d864cfe3242 to your computer and use it in GitHub Desktop.
Quick benchmarking with scimark4
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