about summary refs log tree commit diff
path: root/benchmark/benchmark.py
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-12-03 13:12:22 +0100
committervanhauser-thc <vh@thc.org>2023-12-03 13:12:22 +0100
commit01e0d4aa1c9e856124491d1f23deea0ae443d8ea (patch)
tree5a18813dd836aee2aae0a7b1941c710a983520cf /benchmark/benchmark.py
parent477a5176281a907c9c54d4588c88ea1ed93e72e2 (diff)
downloadafl++-01e0d4aa1c9e856124491d1f23deea0ae443d8ea.tar.gz
comparison -> comparison.md
Diffstat (limited to 'benchmark/benchmark.py')
-rwxr-xr-xbenchmark/benchmark.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py
index b3d55f21..0685cedd 100755
--- a/benchmark/benchmark.py
+++ b/benchmark/benchmark.py
@@ -186,14 +186,14 @@ async def save_benchmark_results() -> None:
         json.dump(asdict(results), jsonfile, sort_keys=True)
         jsonfile.write("\n")
         print(blue(f" [*] Results have been written to the {jsonfile.name} file."))
-    with open("COMPARISON", "r+") as comparisonfile:
+    with open("COMPARISON.md", "r+") 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(51)
         if cpu_model in comparisonfile.read():
-            print(blue(f" [*] Results have not been written to the COMPARISON file; this CPU is already present."))
+            print(blue(f" [*] Results have not been written to the COMPARISON.md file; this CPU is already present."))
             return
         cpu_mhz = str(round(results.hardware.cpu_fastest_core_mhz)).ljust(5)
         if not "test-instr-persist-shmem" in results.targets or \
@@ -206,8 +206,8 @@ async def save_benchmark_results() -> None:
         multi = str(round(results.targets["test-instr-persist-shmem"]["multicore"].execs_per_sec)).ljust(9)
         cores = str(args.fuzzers).ljust(7)
         comparisonfile.write(f"{cpu_model} | {cpu_mhz} | {cores} | {single} | {multi} | {aflconfig} |\n")
-        print(blue(f" [*] Results have been written to the COMPARISON file."))
-    with open("COMPARISON", "r") as comparisonfile:
+        print(blue(f" [*] Results have been written to the COMPARISON.md file."))
+    with open("COMPARISON.md", "r") as comparisonfile:
         print(comparisonfile.read())