Skip to content

Commit

Permalink
CI: Add memory/peakmemory benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Aug 1, 2024
1 parent ac62989 commit 47c0f36
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions asv_bench/benchmarks/finite_difference_1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def setup(self):
def time_derivative(self):
self.differentiator.d(X=self.t, t=self.t, axis=0)

def mem_derivative(self):
self.differentiator.d(X=self.t, t=self.t, axis=0)

class MemSuite:
def mem_list(self):
return [0] * 256
def peakmem_derivative(self):
self.differentiator.d(X=self.t, t=self.t, axis=0)

0 comments on commit 47c0f36

Please sign in to comment.