summary refs log tree commit diff
path: root/synmark/suites/lrucache_evict.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-10-04 13:53:04 -0400
committerGitHub <noreply@github.com>2023-10-04 13:53:04 -0400
commitab9c1e8f3951dcdb9d628b7ed155de543c046c44 (patch)
tree0e8f8faecdcab239aae6feef3d37aff8581d454f /synmark/suites/lrucache_evict.py
parentSome refactors around receipts stream (#16426) (diff)
downloadsynapse-ab9c1e8f3951dcdb9d628b7ed155de543c046c44.tar.xz
Add type hints to synmark. (#16421)
Diffstat (limited to '')
-rw-r--r--synmark/suites/lrucache_evict.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synmark/suites/lrucache_evict.py b/synmark/suites/lrucache_evict.py
index 0ee202ed36..02238c2627 100644
--- a/synmark/suites/lrucache_evict.py
+++ b/synmark/suites/lrucache_evict.py
@@ -14,15 +14,16 @@
 
 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 where half of them are
     evicted.
     """
-    cache = LruCache(loops // 2)
+    cache: LruCache[int, bool] = LruCache(loops // 2)
 
     start = perf_counter()