Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ create_and_delete_book
Function
create_and_delete_book
benchmarks/test_basic_doc_ops.py:67–70 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
65
print(
"Load from database: %.3fus"
% (timeit(
lambda
: Book.objects[0], 100) * 10**6))
66
67
def
create_and_delete_book():
68
b = init_book()
69
b.save()
70
b.delete()
71
72
print(
73
"Init + save to database + delete: %.3fms"
Callers
nothing calls this directly
Calls
3
init_book
Function · 0.85
save
Method · 0.45
delete
Method · 0.45
Tested by
no test coverage detected