diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-28 22:02:18 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-28 22:02:18 +0100 |
commit | 6f77d81b1ca937c369b26b99ee503cff10bc5ff2 (patch) | |
tree | 0060a2c56e447004c0f5f48edf64d23075b9716c /src/app/deflatetest/benchmark.py | |
parent | 8870ec8aa8cfc0563e54171e2724b1d9687bdac8 (diff) |
add kconfig variables for inflate lib
Diffstat (limited to 'src/app/deflatetest/benchmark.py')
-rwxr-xr-x | src/app/deflatetest/benchmark.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/app/deflatetest/benchmark.py b/src/app/deflatetest/benchmark.py index a88a28d..379b62f 100755 --- a/src/app/deflatetest/benchmark.py +++ b/src/app/deflatetest/benchmark.py @@ -6,8 +6,8 @@ import subprocess import sys -def main(arch): - make_args = [f"arch={arch}", "app=deflatetest"] +def main(make_args): + make_args += ["app=deflatetest"] base_rom = None base_ram = None defl_rom = None @@ -55,7 +55,8 @@ def main(arch): rom_usage = int(np.ceil((defl_rom - base_rom) / 16)) * 16 ram_usage = int(np.ceil((defl_ram - base_ram) / 16)) * 16 - print(f"| {arch} | {rom_usage} B | {ram_usage} B") + arch_line = " ".join(make_args) + print(f"| {arch_line} | {rom_usage} B | {ram_usage} B") status = subprocess.run( ["make", "cat"] + make_args, stdout=subprocess.PIPE, universal_newlines=True @@ -74,4 +75,4 @@ def main(arch): if __name__ == "__main__": - main(*sys.argv[1:]) + main(sys.argv[1:]) |