mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 12:48:06 +00:00
benchmark: show the number of cores used in COMPARISON
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
CPU | MHz | singlecore | multicore | afl-*-config |
|
CPU | MHz | threads | singlecore | multicore | afl-*-config |
|
||||||
===============================|=======|============|===========|==============|
|
===============================|=======|=========|============|===========|==============|
|
||||||
Apple Mac Studio M2 Ultra 2023 | 3500 | 174386 | 1112585 | both |
|
Apple Mac Studio M2 Ultra 2023 | 3500 | 16 | 174386 | 1112585 | both |
|
||||||
Intel(R) Core(TM) i9-9900K CPU | 4999 | 133706 | 1169989 | both |
|
Intel(R) Core(TM) i9-9900K CPU | 4995 | 16 | 133706 | 1169989 | both |
|
||||||
|
@ -195,6 +195,7 @@ async def save_benchmark_results() -> None:
|
|||||||
print(blue(f" [*] Results have been written to {jsonfile.name}"))
|
print(blue(f" [*] Results have been written to {jsonfile.name}"))
|
||||||
with open("COMPARISON", "a") as comparisonfile:
|
with open("COMPARISON", "a") as comparisonfile:
|
||||||
described_config = await describe_afl_config()
|
described_config = await describe_afl_config()
|
||||||
|
aflconfig = described_config.ljust(12)
|
||||||
if results.hardware is None:
|
if results.hardware is None:
|
||||||
return
|
return
|
||||||
cpu_model = results.hardware.cpu_model.ljust(42)
|
cpu_model = results.hardware.cpu_model.ljust(42)
|
||||||
@ -205,9 +206,10 @@ async def save_benchmark_results() -> None:
|
|||||||
return
|
return
|
||||||
single = str(round(results.targets["test-instr-persist-shmem"]["singlecore"].total_execs_per_sec)).ljust(10)
|
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)
|
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:
|
if len(cpu_model) > 30:
|
||||||
cpu_model = 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:
|
with open("COMPARISON", "r") as comparisonfile:
|
||||||
print(comparisonfile.read())
|
print(comparisonfile.read())
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user