pretty gifff

This commit is contained in:
2026-01-15 02:02:50 +03:00
parent cd3dd10d11
commit 0f8b1c05fc
12 changed files with 36 additions and 51 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ class Benchmark:
self.description = description
self.iterations = iterations
def __call__(self) -> float:
def run(self) -> float:
return self.func()
@override
@@ -84,9 +84,9 @@ class Benchmarks:
return decorator
else:
return decorator(call)
@classmethod
def get_benchmarks(cls) -> list[Benchmark]:
return cls._benchmarks
benchmark = Benchmarks.register