cpu-benchmark: add shebang
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import subprocess, multiprocessing as mp, pandas as pd
|
||||
|
||||
def speed(core):
|
||||
@@ -21,3 +23,4 @@ for core in range(1, mp.cpu_count()+1):
|
||||
df.append((core, s, s/core))
|
||||
df = pd.DataFrame(df)
|
||||
df.to_csv('bench.csv', index=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user