Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ormar-orm/ormar
/ sum_
Function
sum_
benchmarks/test_benchmark_aggregate.py:31–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
29
async
def
test_sum(aio_benchmark, num_models: int, authors_in_db: list[Author]):
30
@aio_benchmark
31
async
def
sum_():
32
return
await Author.objects.sum(
"score"
)
33
34
s = sum_()
35
assert 0 <= s <= 100 * num_models
Callers
1
test_sum
Function · 0.85
Calls
1
sum
Method · 0.45
Tested by
no test coverage detected