Skip to content

Commit

Permalink
avoid too large test
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Oct 26, 2024
1 parent f8613ec commit faa340b
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions tests/test_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,6 @@ def inner():
benchmark(inner)


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

def inner():
calc_mae(obs, fct)

benchmark(inner)


def test_calc_mbe_1e3(benchmark):
# thousand level
obs = np.random.rand(int(1e3))
Expand All @@ -64,17 +53,6 @@ def inner():
benchmark(inner)


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

def inner():
calc_mbe(obs, fct)

benchmark(inner)


def test_calc_threshold_hit_ratio_1e3(benchmark):
# thousand level
obs = np.random.rand(int(1e3))
Expand All @@ -97,17 +75,6 @@ def inner():
benchmark(inner)


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

def inner():
calc_threshold_hit_ratio(obs, fct, 0.5)

benchmark(inner)


def test_calc_threshold_false_alarm_ratio_1e3(benchmark):
obs = np.random.rand(int(1e3))
fct = np.random.rand(int(1e3))
Expand All @@ -129,17 +96,6 @@ def inner():
benchmark(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))

def inner():
calc_threshold_false_alarm_ratio(obs, fct, 0.5)

benchmark(inner)


def test_calc_threshold_ts_1e3(benchmark):
# thousand level
obs = np.random.rand(int(1e3))
Expand All @@ -160,14 +116,3 @@ def inner():
calc_threshold_ts(obs, fct, 0.5)

benchmark(inner)


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

def inner():
calc_threshold_ts(obs, fct, 0.5)

benchmark(inner)

0 comments on commit faa340b

Please sign in to comment.