debian-cpu-benchmark: add gitignore

This commit is contained in:
Jaewook Lee
2024-08-12 03:55:07 -04:00
parent 04d58ba146
commit b1dd7f43a9
2 changed files with 4 additions and 1 deletions

4
debian-cpu-benchmark/bench.py Normal file → Executable file
View File

@@ -1,3 +1,5 @@
#!/usr/bin/env python3
import subprocess, multiprocessing as mp, pandas as pd
subprocess.run("sudo apt-get update && sudo apt-get install -y sysbench",
@@ -15,4 +17,4 @@ for core in range(1, mp.cpu_count()+1):
s = speed(core)
df.append((core, s, s/core))
df = pd.DataFrame(df)
df.to_csv('bench.csv', index=False)
df.to_csv('bench.csv', index=False)