mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
23 lines
612 B
Python
Executable file
23 lines
612 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import subprocess
|
|
from time import sleep
|
|
import os
|
|
|
|
from config import BENCHMARKS, OPTIONS, HERMIT_RUN_SERVER, NATIVE_PERFTEST_PATH
|
|
|
|
print('Run native benchmarks.\n')
|
|
for bm in BENCHMARKS:
|
|
for opt in OPTIONS:
|
|
|
|
print('Benchmark: ' + bm + ' ' + opt + '\n')
|
|
subprocess.call("numactl --physcpubind 10".split() + [os.path.join(NATIVE_PERFTEST_PATH, bm)] + opt.split())
|
|
|
|
|
|
print('Run HermitCore benchmarks.\n')
|
|
for bm in BENCHMARKS:
|
|
for opt in OPTIONS:
|
|
|
|
print('Benchmark: ' + bm + ' ' + opt + '\n')
|
|
subprocess.call(HERMIT_RUN_SERVER + bm + ' ' + opt, shell=True)
|
|
sleep(1)
|