Skip to content

Commit

Permalink
Merge pull request #98 from oscarbenjamin/pr_asv_060
Browse files Browse the repository at this point in the history
Fix cse benchmark
  • Loading branch information
oscarbenjamin authored Sep 4, 2023
2 parents eec7104 + 435c3d2 commit 207b878
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install virtualenv asv
pip install virtualenv asv packaging
- name: Configure benchmarks
run: asv machine --yes --config asv.conf.actions.json
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ env/
results/
sympy/
html/
.python-version
6 changes: 3 additions & 3 deletions asv.conf.actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
// list indicates to just test against the default (latest)
// version.
"matrix": {
"fastcache": [],
"mpmath": [],
"numpy": []
"pip+fastcache": [],
"pip+mpmath": [],
"pip+numpy": []
},

// The directory (relative to the current directory) that benchmarks are
Expand Down
6 changes: 3 additions & 3 deletions asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
// list indicates to just test against the default (latest)
// version.
"matrix": {
"fastcache": [],
"mpmath": [],
"numpy": [],
"pip+fastcache": [],
"pip+mpmath": [],
"pip+numpy": [],
},

// The directory (relative to the current directory) that benchmarks are
Expand Down
6 changes: 3 additions & 3 deletions asv.conf.venv.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
// list indicates to just test against the default (latest)
// version.
"matrix": {
"fastcache": [],
"mpmath": [],
"numpy": [],
"pip+fastcache": [],
"pip+mpmath": [],
"pip+numpy": [],
},

// The directory (relative to the current directory) that benchmarks are
Expand Down
6 changes: 3 additions & 3 deletions asv.conf.venv.slow.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
// list indicates to just test against the default (latest)
// version.
"matrix": {
"fastcache": [],
"mpmath": [],
"numpy": [],
"pip+fastcache": [],
"pip+mpmath": [],
"pip+numpy": [],
},

// The directory (relative to the current directory) that benchmarks are
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/cse.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from functools import reduce
from operator import add

from sympy import cse, exp, sin, symbols, tan, Matrix
from sympy import (cse, exp, sin, symbols, tan, Matrix, ImmutableDenseMatrix,
MatAdd, MatMul, Transpose, Inverse, S, MatrixSymbol)


def _get_args_exprs(nexprs, nterms):
Expand Down

0 comments on commit 207b878

Please sign in to comment.