diff options
author | Chris Ball <chris@printf.net> | 2023-11-12 07:40:58 -0800 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2023-11-12 07:40:58 -0800 |
commit | 8b79d9b4d5efdf4d0e30a323dd3a169f9a7801c5 (patch) | |
tree | 1bb8d7325c346de69f391e6e42111da72baab062 /benchmark/benchmark.py | |
parent | 16993bba8fa359b093d44fe395044bfd392c19f3 (diff) | |
download | afl++-8b79d9b4d5efdf4d0e30a323dd3a169f9a7801c5.tar.gz |
benchmark: show the number of cores used in COMPARISON
Diffstat (limited to 'benchmark/benchmark.py')
-rw-r--r-- | benchmark/benchmark.py | 4 |
1 files changed, 3 insertions, 1 deletions
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()) |