# -*- coding: UTF-8 -*-

'''
There are two files V_slow.py and V_fast.py with definition of functions V_slow(s) and V_fast(s) respectively.
Both function get a string of 'R' or 'B' as input.
Both functions have commented their output not to interfere the stress output
'''


from random import choice
from time import perf_counter

from V_slow import *
from V_fast import *

# generates random string of length size, from symbols in the given string alph
def gen_test(length, alph):
    ans = ''
    for _ in range(length):
        ans += choice(alph)
    return ans


for size in 10, 100, 1000, 5000, 10000, 30000, 50000, 70000, 100000, 200000, 500000:
    s = gen_test(size, 'RB')
    start = perf_counter()
    V_fast(s)
    print(size, perf_counter() - start)
