Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions benchmarks/core/arit.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
p = 3*x**2*y*z**7 + 7*x*y*z**2 + 4*x + x*y**4
e = (x + y + z + 1)**32

a5000 = symbols("a0:5000")
sum_a5000 = Add(*a5000);


class Time_Arit:
def time_neg(self):
-x
Expand All @@ -27,6 +31,10 @@ def time_Add_xy(self):
def time_Add_xyz(self):
Add(*[x, y, z])

def time_Add_thousands(self):
# from https://github.com/sympy/sympy/pull/27254
sum_a5000 + a5000[0]

def time_Mul_xy(self):
x*y

Expand Down
Loading