Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ t
Function
t
doc/neps/nep-0016-benchmark.py:33–34 ·
view source on GitHub ↗
(name, statement)
Source
from the content-addressed store, hash-verified
31
32
runner = perf.Runner()
33
def
t(name, statement):
34
runner.timeit(name, statement, globals=globals())
35
36
t(
"np.asarray([])"
,
"np.asarray([])"
)
37
arrobj = np.array([])
Callers
15
nep-0016-benchmark.py
File · 0.85
test_standard_t
Method · 0.85
test_standard_t
Method · 0.85
test_too_many_duck_arrays
Method · 0.85
test_correct_hash_dict
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
Calls
no outgoing calls
Tested by
15
test_standard_t
Method · 0.68
test_standard_t
Method · 0.68
test_too_many_duck_arrays
Method · 0.68
test_correct_hash_dict
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