summary refs log tree commit diff
path: root/synmark/suites/lrucache.py
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2023-10-16 15:42:54 -0400
committerPatrick Cloke <patrickc@matrix.org>2023-10-16 15:42:54 -0400
commitc1878cd4ae7fec1d7b090b4b45698ce36bcd3726 (patch)
tree2de86373f8b7516a69ac910597a2a514ec41afd5 /synmark/suites/lrucache.py
parentMerge branch 'develop' into clokep/db-upgrades (diff)
parentUpdate the release script to remind releaser to check for special release not... (diff)
downloadsynapse-c1878cd4ae7fec1d7b090b4b45698ce36bcd3726.tar.xz
Merge remote-tracking branch 'origin/develop' into clokep/db-upgrades
Diffstat (limited to 'synmark/suites/lrucache.py')
-rw-r--r--synmark/suites/lrucache.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synmark/suites/lrucache.py b/synmark/suites/lrucache.py
index 9b4a424149..cfa0163c62 100644
--- a/synmark/suites/lrucache.py
+++ b/synmark/suites/lrucache.py
@@ -14,14 +14,15 @@
 
 from pyperf import perf_counter
 
+from synapse.types import ISynapseReactor
 from synapse.util.caches.lrucache import LruCache
 
 
-async def main(reactor, loops):
+async def main(reactor: ISynapseReactor, loops: int) -> float:
     """
     Benchmark `loops` number of insertions into LruCache without eviction.
     """
-    cache = LruCache(loops)
+    cache: LruCache[int, bool] = LruCache(loops)
 
     start = perf_counter()