Skip to content

Commit

Permalink
add benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGonite57 committed May 6, 2024
1 parent ca198f7 commit 678ad7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ def time_update_existing(self, n):
def time_update_overlap(self, n):
self.my_set.update(range(n // 2, n + n // 2))

def time_clear(self):
self.my_set.clear()


class EventedSetWithCallbackSuite(EventedSetSuite):
def setup(self, n):
Expand Down

0 comments on commit 678ad7b

Please sign in to comment.