diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-24 17:25:50 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-24 17:25:50 +0100 |
commit | cd73b1220a2952e3bfd106090c61e546cca4cbcc (patch) | |
tree | 7bf13237ba8b6c3ef842d908411377dc01f0f95d /src/app/deflatetest/deflate.py | |
parent | 572721143ae46d9a1b9a3b4119fdca481b963a20 (diff) |
deflatetest: add benchmark script
Diffstat (limited to 'src/app/deflatetest/deflate.py')
-rwxr-xr-x | src/app/deflatetest/deflate.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/deflatetest/deflate.py b/src/app/deflatetest/deflate.py index 3b1d9bd..89fad41 100755 --- a/src/app/deflatetest/deflate.py +++ b/src/app/deflatetest/deflate.py @@ -35,3 +35,5 @@ print(f"// first Huffman block: type={block_type} is_final={is_final}") print(f"// {sys.argv[1]}") print("unsigned char const inflate_input[] = {" + ", ".join(map(str, output)) + "};") print(f"unsigned short const inflate_input_size = {len(output)};") +print(f"unsigned char deflate_output[{len(input_data) + 1}];") +print(f"unsigned short const deflate_output_size = {len(input_data) + 1};") |