Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/grantjenks/python-sortedcontainers
/ add
Function
add
tests/benchmark_scale.py:184–187 ·
view source on GitHub ↗
Repeatedly add number from numbers to sorted list.
(obj, numbers)
Source
from the content-addressed store, hash-verified
182
183
@timeit
184
def
add(obj, numbers):
185
"Repeatedly add number from numbers to sorted list."
186
for
number in PROGRESS(numbers,
'add'
):
187
obj.add(number)
188
189
190
@timeit
Callers
1
benchmark_add
Function · 0.70
Calls
1
add
Method · 0.45
Tested by
no test coverage detected