From 21c232078ed5a05ecd2ee5c6a5f1d73cf44bc4f1 Mon Sep 17 00:00:00 2001 From: Erik Friese Date: Tue, 19 Sep 2023 21:04:31 +0200 Subject: [PATCH] benchmark scaled up --- benchmarks/benchmarks.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py index 72ec30e2b..4f921d20c 100644 --- a/benchmarks/benchmarks.py +++ b/benchmarks/benchmarks.py @@ -49,20 +49,9 @@ def setup(self): ) self.instance_filled_nested_bytes = bytes(self.instance_filled_nested) self.instance_filled_repeated = TestRepeatedMessage( - [ - "test1", - "test2", - "test3", - "test4", - "test5", - "test6", - "test7", - "test8", - "test9", - "test10", - ], - [2, -100, 0, 500000, 600, -425678, 1000000000, -300, 1, -694214214466], - [True, False, False, False, True, True, False, True, False, False], + [f"test{i}" for i in range(1_000)], + [(i-500)**3 for i in range(1_000)], + [i%2==0 for i in range(1_000)], ) self.instance_filled_repeated_bytes = bytes(self.instance_filled_repeated)