Skip to content

Commit

Permalink
bench: frappe.call
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Dec 22, 2024
1 parent 54c617d commit f91b18e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions caffeine/microbenchmarks/bench_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,10 @@ def cache_in_redis(num):
bench_parse_datetime = NanoBenchmark(
"get_datetime('2042-12-22 00:01:02.000042')", setup="", globals={"get_datetime": get_datetime}
)


def test_fn(doctype: str, **kwargs):
pass


bench_frappe_call = NanoBenchmark("frappe.call(fn, {})", globals={"fn": test_fn})

0 comments on commit f91b18e

Please sign in to comment.