#!/usr/bin/env python

from bit_compression_analysis import *

str_lengths = [ceil(pow(10, x / 10)) for x in range(30, 70, 1)]
compressor = 'lzma'

with open('result_' + compressor + '.dat', 'w') as f:
    f.write("#bit_length file_length comp_length ratio\n")

with open('result_' + compressor + '.dat', 'a') as f:
    for str_length in str_lengths:
        print(str_length)

        str_file = str(str_length) + '_output.bin'

        # str_array = glob.glob(str_file)[0]
        # len_a0, na0 = comp_ratio(str_array, 1, compressor)
        # f.write('{0} {1} \n'.format(str_length, na0, len_a0,))
