repo.or.cz
/
sympy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial SymPy benchmark suite
[sympy.git]
/
sympy
/
core
/
benchmarks
/
bench_basic.py
blob
db0d1eea88f316878478d23b8293bc1542d8e6bf
1
from
sympy
.
core
import
symbols
,
S
,
C
2
3
x
,
y
=
symbols
(
'xy'
)
4
5
def
timeit_Symbol_meth_lookup
():
6
x
.
diff
# no call, just method lookup
7
8
def
timeit_S_lookup
():
9
S
.
Exp1
10
11
def
timeit_C_lookup
():
12
C
.
Add
13
14
def
timeit_Symbol_eq_xy
():
15
x
==
y
16