Skip to content

Commit

Permalink
tests: perf update
Browse files Browse the repository at this point in the history
  • Loading branch information
Clarmy committed Jun 13, 2023
1 parent 4d6012e commit 3be5dd3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@


def test_calc_mae_1e3(benchmark):
# thousand level
obs = np.random.rand(int(1e3))
fct = np.random.rand(int(1e3))

Expand All @@ -20,6 +21,7 @@ def inner():


def test_calc_mae_1e6(benchmark):
# million level
obs = np.random.rand(int(1e6))
fct = np.random.rand(int(1e6))

Expand All @@ -30,6 +32,7 @@ def inner():


def test_calc_mae_1e7(benchmark):
# ten million level
obs = np.random.rand(int(1e7))
fct = np.random.rand(int(1e7))

Expand All @@ -40,6 +43,7 @@ def inner():


def test_calc_mbe_1e3(benchmark):
# thousand level
obs = np.random.rand(int(1e3))
fct = np.random.rand(int(1e3))

Expand All @@ -50,6 +54,7 @@ def inner():


def test_calc_mbe_1e6(benchmark):
# million level
obs = np.random.rand(int(1e6))
fct = np.random.rand(int(1e6))

Expand All @@ -60,6 +65,7 @@ def inner():


def test_calc_mbe_1e7(benchmark):
# ten million level
obs = np.random.rand(int(1e7))
fct = np.random.rand(int(1e7))

Expand All @@ -70,6 +76,7 @@ def inner():


def test_calc_threshold_hit_ratio_1e3(benchmark):
# thousand level
obs = np.random.rand(int(1e3))
fct = np.random.rand(int(1e3))

Expand All @@ -80,6 +87,7 @@ def inner():


def test_calc_threshold_hit_ratio_1e6(benchmark):
# million level
obs = np.random.rand(int(1e6))
fct = np.random.rand(int(1e6))

Expand All @@ -90,6 +98,7 @@ def inner():


def test_calc_threshold_hit_ratio_1e7(benchmark):
# ten million level
obs = np.random.rand(int(1e7))
fct = np.random.rand(int(1e7))

Expand All @@ -110,6 +119,7 @@ def inner():


def test_calc_threshold_false_alarm_ratio_1e6(benchmark):
# million level
obs = np.random.rand(int(1e6))
fct = np.random.rand(int(1e6))

Expand All @@ -120,6 +130,7 @@ def inner():


def test_calc_threshold_false_alarm_ratio_1e7(benchmark):
# ten million level
obs = np.random.rand(int(1e7))
fct = np.random.rand(int(1e7))

Expand All @@ -130,6 +141,7 @@ def inner():


def test_calc_threshold_ts_1e3(benchmark):
# thousand level
obs = np.random.rand(int(1e3))
fct = np.random.rand(int(1e3))

Expand All @@ -140,6 +152,7 @@ def inner():


def test_calc_threshold_ts_1e6(benchmark):
# million level
obs = np.random.rand(int(1e6))
fct = np.random.rand(int(1e6))

Expand All @@ -150,6 +163,7 @@ def inner():


def test_calc_threshold_ts_1e7(benchmark):
# ten million level
obs = np.random.rand(int(1e7))
fct = np.random.rand(int(1e7))

Expand Down

0 comments on commit 3be5dd3

Please sign in to comment.