MCPcopy 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

benchFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…