From b1dd7f43a927c1c27f30b5b6f6b671b8ef6e3550 Mon Sep 17 00:00:00 2001 From: Jaewook Lee <11328376+jaewooklee93@users.noreply.github.com> Date: Mon, 12 Aug 2024 03:55:07 -0400 Subject: [PATCH] debian-cpu-benchmark: add gitignore --- debian-cpu-benchmark/.gitignore | 1 + debian-cpu-benchmark/bench.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 debian-cpu-benchmark/.gitignore mode change 100644 => 100755 debian-cpu-benchmark/bench.py diff --git a/debian-cpu-benchmark/.gitignore b/debian-cpu-benchmark/.gitignore new file mode 100644 index 0000000..df68529 --- /dev/null +++ b/debian-cpu-benchmark/.gitignore @@ -0,0 +1 @@ +bench.csv diff --git a/debian-cpu-benchmark/bench.py b/debian-cpu-benchmark/bench.py old mode 100644 new mode 100755 index cad29dc..ea9ac61 --- a/debian-cpu-benchmark/bench.py +++ b/debian-cpu-benchmark/bench.py @@ -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) \ No newline at end of file +df.to_csv('bench.csv', index=False)