Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tortoise/tortoise-orm
/ _bench
Function
_bench
tests/benchmarks/test_get.py:14–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
@benchmark
13
def
bench():
14
async
def
_bench():
15
randid = random.randint(minid, maxid)
# nosec
16
await BenchmarkFewFields.get(id=randid)
17
18
loop.run_until_complete(_bench())
19
Callers
1
bench
Function · 0.70
Calls
1
get
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…