Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ t
Function
t
doc/neps/nep-0016-benchmark.py:37–38 ·
view source on GitHub ↗
(name, statement)
Source
from the content-addressed store, hash-verified
35
36
runner = perf.Runner()
37
def
t(name, statement):
38
runner.timeit(name, statement, globals=globals())
39
40
41
t(
"np.asarray([])"
,
"np.asarray([])"
)
Callers
15
nep-0016-benchmark.py
File · 0.85
test_too_many_duck_arrays
Method · 0.85
test_correct_hash_dict
Method · 0.85
test_complex_errors
Method · 0.85
test_small_types
Method · 0.85
test_large_types
Method · 0.85
test_modular_power
Method · 0.85
test_zero_division
Method · 0.85
test_signed_zeros
Method · 0.85
test_branches
Method · 0.85
_test_type_repr
Method · 0.85
test_floats
Method · 0.85
Calls
no outgoing calls
Tested by
15
test_too_many_duck_arrays
Method · 0.68
test_correct_hash_dict
Method · 0.68
test_complex_errors
Method · 0.68
test_small_types
Method · 0.68
test_large_types
Method · 0.68
test_modular_power
Method · 0.68
test_zero_division
Method · 0.68
test_signed_zeros
Method · 0.68
test_branches
Method · 0.68
_test_type_repr
Method · 0.68
test_floats
Method · 0.68
test_complex
Method · 0.68