MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / stress_update

Function stress_update

tests/test_stress_sortedset.py:132–139  ·  view source on GitHub ↗
(sst)

Source from the content-addressed store, hash-verified

130
131@actor
132def stress_update(sst):
133 def iter_randomly(start, stop, count):
134 for rpt in range(count):
135 yield random.randrange(start, stop)
136 sst.update(iter_randomly(0, 500, 100),
137 iter_randomly(500, 1000, 100),
138 iter_randomly(1000, 1500, 100),
139 iter_randomly(1500, 2000, 100))
140
141@actor
142def stress_isdisjoint(sst):

Callers

nothing calls this directly

Calls 2

iter_randomlyFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected