from main import remove_char
from main import remove_char2


def test(benchmark):
    assert benchmark(remove_char, 'country') == 'ountr'


def test2(benchmark):
    assert benchmark(remove_char2, 'country') == 'ountr'


'''''''''
---------------------------------------------------------------------------------------- benchmark: 2 tests ---------------------------------------------------------------------------------------
Name (time in ns)          Min                   Max                Mean             StdDev              Median               IQR              Outliers  OPS (Mops/s)            Rounds  Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test2                 161.7800 (1.0)        640.8800 (1.0)      167.3062 (1.0)      21.1217 (1.0)      163.5200 (1.0)      0.6700 (1.0)       1947;4802        5.9771 (1.0)       58738         100
test                  213.5454 (1.32)     1,537.6818 (2.40)     224.9972 (1.34)     40.6528 (1.92)     218.3636 (1.34)     6.1818 (9.23)     4547;10752        4.4445 (0.74)     199243          22
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Legend:
  Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.
  OPS: Operations Per Second, computed as 1 / Mean
============================================================================ 2 passed in 4.22 seconds ======================
'''''''''''

from main import remove_char
from main import remove_char2


def test(benchmark):
    assert benchmark(remove_char, 'country') == 'ountr'


def test2(benchmark):
    assert benchmark(remove_char2, 'country') == 'ountr'


'''''''''
---------------------------------------------------------------------------------------- benchmark: 2 tests ---------------------------------------------------------------------------------------
Name (time in ns)          Min                   Max                Mean             StdDev              Median               IQR              Outliers  OPS (Mops/s)            Rounds  Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test2                 161.7800 (1.0)        640.8800 (1.0)      167.3062 (1.0)      21.1217 (1.0)      163.5200 (1.0)      0.6700 (1.0)       1947;4802        5.9771 (1.0)       58738         100
test                  213.5454 (1.32)     1,537.6818 (2.40)     224.9972 (1.34)     40.6528 (1.92)     218.3636 (1.34)     6.1818 (9.23)     4547;10752        4.4445 (0.74)     199243          22
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Legend:
  Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.
  OPS: Operations Per Second, computed as 1 / Mean
============================================================================ 2 passed in 4.22 seconds ======================
'''''''''''

---------------------------------------------------------------------------------------- benchmark: 2 tests --------------------------------------------------------------------------------------- Name (time in ns)          Min                   Max                Mean             StdDev              Median               IQR              Outliers  OPS (Mops/s)            Rounds  Iterations --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test2                 161.7800 (1.0)        640.8800 (1.0)      167.3062 (1.0)      21.1217 (1.0)      163.5200 (1.0)      0.6700 (1.0)       1947;4802        5.9771 (1.0)       58738         100 test                  213.5454 (1.32)     1,537.6818 (2.40)     224.9972 (1.34)     40.6528 (1.92)     218.3636 (1.34)     6.1818 (9.23)     4547;10752        4.4445 (0.74)     199243          22 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------  Legend:   Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.   OPS: Operations Per Second, computed as 1 / Mean ============================================================================ 2 passed in 4.22 seconds ======================