Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegFlow
/ exec
Method
exec
flow-python/examples/basis_function/profile/source.py:11–18 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
9
self.n = args[
'n'
]
10
11
def
exec(self):
12
start = time.perf_counter()
13
for
i in range(self.n - 1):
14
envelope = Envelope.pack({})
15
self.out.send(envelope)
16
17
envelope = Envelope.pack({
'time'
: start})
18
self.out.send(envelope)
Callers
nothing calls this directly
Calls
3
range
Function · 0.85
pack
Method · 0.80
send
Method · 0.45
Tested by
no test coverage detected