Skip to content

Commit

Permalink
Seed benchmark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Jan 7, 2023
1 parent 445b489 commit 0f8d849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/link/jax/test_elemwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def test_logsumexp_benchmark(size, axis, benchmark):
X_max = at.switch(at.isinf(X_max), 0, X_max)
X_lse = at.log(at.sum(at.exp(X - X_max), axis=axis, keepdims=True)) + X_max

X_val = np.random.normal(size=size)
rng = np.random.default_rng(23920)
X_val = rng.normal(size=size)

X_lse_fn = aesara.function([X], X_lse, mode="JAX")

Expand Down
3 changes: 2 additions & 1 deletion tests/link/numba/test_elemwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ def test_logsumexp_benchmark(size, axis, benchmark):
X_max = at.switch(at.isinf(X_max), 0, X_max)
X_lse = at.log(at.sum(at.exp(X - X_max), axis=axis, keepdims=True)) + X_max

X_val = np.random.normal(size=size)
rng = np.random.default_rng(23920)
X_val = rng.normal(size=size)

X_lse_fn = aesara.function([X], X_lse, mode="NUMBA")

Expand Down

1 comment on commit 0f8d849

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Python Benchmark with pytest-benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 0f8d849 Previous: d84cc42 Ratio
tests/link/jax/test_elemwise.py::test_logsumexp_benchmark[1-size0] 28990.854866444875 iter/sec (stddev: 0.000015073027541016342) 61625.489215576905 iter/sec (stddev: 0.00000153927230184099) 2.13

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.