aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--benchmark/COMPARISON8
-rw-r--r--benchmark/benchmark.py4
2 files changed, 7 insertions, 5 deletions
diff --git a/benchmark/COMPARISON b/benchmark/COMPARISON
index d8750e34..03a197cd 100644
--- a/benchmark/COMPARISON
+++ b/benchmark/COMPARISON
@@ -1,4 +1,4 @@
-CPU | MHz | singlecore | multicore | afl-*-config |
-===============================|=======|============|===========|==============|
-Apple Mac Studio M2 Ultra 2023 | 3500 | 174386 | 1112585 | both |
-Intel(R) Core(TM) i9-9900K CPU | 4999 | 133706 | 1169989 | both |
+CPU | MHz | threads | singlecore | multicore | afl-*-config |
+===============================|=======|=========|============|===========|==============|
+Apple Mac Studio M2 Ultra 2023 | 3500 | 16 | 174386 | 1112585 | both |
+Intel(R) Core(TM) i9-9900K CPU | 4995 | 16 | 133706 | 1169989 | both |
diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py
index 6fde621b..2601ef0d 100644
--- a/benchmark/benchmark.py
+++ b/benchmark/benchmark.py
@@ -195,6 +195,7 @@ async def save_benchmark_results() -> None:
print(blue(f" [*] Results have been written to {jsonfile.name}"))
with open("COMPARISON", "a") as comparisonfile:
described_config = await describe_afl_config()
+ aflconfig = described_config.ljust(12)
if results.hardware is None:
return
cpu_model = results.hardware.cpu_model.ljust(42)
@@ -205,9 +206,10 @@ async def save_benchmark_results() -> None:
return
single = str(round(results.targets["test-instr-persist-shmem"]["singlecore"].total_execs_per_sec)).ljust(10)
multi = str(round(results.targets["test-instr-persist-shmem"]["multicore"].total_execs_per_sec)).ljust(9)
+ cores = str(args.fuzzers).ljust(7)
if len(cpu_model) > 30:
cpu_model = cpu_model[:30]
- comparisonfile.write(f"{cpu_model} | {cpu_mhz} | {single} | {multi} | {described_config.ljust(12)} |\n")
+ comparisonfile.write(f"{cpu_model} | {cpu_mhz} | {cores} | {single} | {multi} | {aflconfig} |\n")
with open("COMPARISON", "r") as comparisonfile:
print(comparisonfile.read())