def main():
    file_name = 'variable_size_files.txt'
    x = [1, 2, 4, 8, 16, 32, 64]
    x_str = [str(i) for i in x]
    with open('variable_size_timing_results.txt', 'w') as f:
        f.write('Size MB,time (s)\n')
        for size in x_str:
            replace_size_in_file(file_name, size)
            start = time.time()
            proc.add_videos(file_name, 'variable_size_output_' + size + '.csv', 'video_list')
            elapsed_time = time.time() - start
            f.write('{},{}\n'.format(size, elapsed_time))
def main():
    file_name = 'variable_size_files.txt'
    x = [1, 2, 4, 8, 16, 32, 64]
    x_str = [str(i) for i in x]
    with open('variable_size_timing_results.txt', 'w') as f:
        f.write('Size MB,time (s)\n')
        for size in x_str:
            replace_size_in_file(file_name, size)
            start = time.time()
            proc.add_videos(file_name, 'variable_size_output_' + size + '.csv',
                            'video_list')
            elapsed_time = time.time() - start
            f.write('{},{}\n'.format(size, elapsed_time))
def main():
    file_name = 'scalability_results.txt'
    try:
        os.remove(file_name)
    except:
        print("No file to remove...")
    set_capacity(20)
    try:
        create_group()
    except botocore.exceptions.ClientError as e:
        print('Already created...', e)
    enable_metrics()
    desired = [x for x in range(1, 21) if 20 % x == 0]
    with open(file_name, 'a') as f:
        f.write('Number of Instances,Time to Process (s)\n')
        for i in desired:
            set_and_wait(i)
            start = time.time()
            proc.add_videos('twenty_videos.txt', 'twenty_videos_output.csv', 'video_list')
            end = time.time()
            f.write('{},{}\n'.format(i, end-start))
Exemple #4
0
def main():
    file_name = 'scalability_results.txt'
    try:
        os.remove(file_name)
    except:
        print("No file to remove...")
    set_capacity(20)
    try:
        create_group()
    except botocore.exceptions.ClientError as e:
        print('Already created...', e)
    enable_metrics()
    desired = [x for x in range(1, 21) if 20 % x == 0]
    with open(file_name, 'a') as f:
        f.write('Number of Instances,Time to Process (s)\n')
        for i in desired:
            set_and_wait(i)
            start = time.time()
            proc.add_videos('twenty_videos.txt', 'twenty_videos_output.csv',
                            'video_list')
            end = time.time()
            f.write('{},{}\n'.format(i, end - start))