from main import how_much_i_love_you
from main import how_much_i_love_you2


def test(benchmark):
    assert benchmark(how_much_i_love_you, 7) == "I love you"


def test2(benchmark):
    assert benchmark(how_much_i_love_you2, 7) == "I love you"


'''''''''
---------------------------------------------------------------------------------------- benchmark: 2 tests ---------------------------------------------------------------------------------------
Name (time in ns)          Min                   Max                Mean             StdDev              Median               IQR              Outliers  OPS (Mops/s)            Rounds  Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test2                 183.2100 (1.0)        791.2300 (1.0)      194.3714 (1.0)      34.2937 (1.0)      185.7300 (1.0)      5.9400 (1.62)      2342;4659        5.1448 (1.0)       49784         100
test                  184.3704 (1.01)     1,169.9630 (1.48)     194.8984 (1.00)     35.3845 (1.03)     188.7778 (1.02)     3.6667 (1.0)      3783;16693        5.1309 (1.00)     192308          27
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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.26 seconds =========================
'''''''''''

from main import how_much_i_love_you
from main import how_much_i_love_you2


def test(benchmark):
    assert benchmark(how_much_i_love_you, 7) == "I love you"


def test2(benchmark):
    assert benchmark(how_much_i_love_you2, 7) == "I love you"


'''''''''
---------------------------------------------------------------------------------------- benchmark: 2 tests ---------------------------------------------------------------------------------------
Name (time in ns)          Min                   Max                Mean             StdDev              Median               IQR              Outliers  OPS (Mops/s)            Rounds  Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test2                 183.2100 (1.0)        791.2300 (1.0)      194.3714 (1.0)      34.2937 (1.0)      185.7300 (1.0)      5.9400 (1.62)      2342;4659        5.1448 (1.0)       49784         100
test                  184.3704 (1.01)     1,169.9630 (1.48)     194.8984 (1.00)     35.3845 (1.03)     188.7778 (1.02)     3.6667 (1.0)      3783;16693        5.1309 (1.00)     192308          27
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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.26 seconds =========================
'''''''''''

---------------------------------------------------------------------------------------- benchmark: 2 tests --------------------------------------------------------------------------------------- Name (time in ns)          Min                   Max                Mean             StdDev              Median               IQR              Outliers  OPS (Mops/s)            Rounds  Iterations --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test2                 183.2100 (1.0)        791.2300 (1.0)      194.3714 (1.0)      34.2937 (1.0)      185.7300 (1.0)      5.9400 (1.62)      2342;4659        5.1448 (1.0)       49784         100 test                  184.3704 (1.01)     1,169.9630 (1.48)     194.8984 (1.00)     35.3845 (1.03)     188.7778 (1.02)     3.6667 (1.0)      3783;16693        5.1309 (1.00)     192308          27 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------  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.26 seconds =========================