diff --git a/caffeine/microbenchmarks/bench_utils.py b/caffeine/microbenchmarks/bench_utils.py index 97b2cd2..2cb36cd 100644 --- a/caffeine/microbenchmarks/bench_utils.py +++ b/caffeine/microbenchmarks/bench_utils.py @@ -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})