add command
This commit is contained in:
@@ -5,6 +5,7 @@ from tabulate import tabulate
|
||||
warnings.filterwarnings("ignore")
|
||||
R, G, B, W = (f'\x1b[{x}m' for x in (31, 32, 34, 0))
|
||||
subprocess.run('neofetch')
|
||||
print(f'{R}$ sysbench cpu --threads={core} run | grep "events per second"{W}'
|
||||
|
||||
def speed(core):
|
||||
output = subprocess.run(
|
||||
@@ -13,7 +14,7 @@ def speed(core):
|
||||
return float(output)
|
||||
|
||||
df = []
|
||||
for core in range(1, mp.cpu_count()+2):
|
||||
for core in range(1, mp.cpu_count()+1):
|
||||
s = speed(core)
|
||||
row = {
|
||||
'#Threads': core,
|
||||
|
||||
Reference in New Issue
Block a user