From 00970cc1c83097abfcd4bba41e4d8e1d34914e20 Mon Sep 17 00:00:00 2001 From: sfmig <33267254+sfmig@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:28:08 +0100 Subject: [PATCH] remove example --- benchmarks/example.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 benchmarks/example.py diff --git a/benchmarks/example.py b/benchmarks/example.py deleted file mode 100644 index 3556e449..00000000 --- a/benchmarks/example.py +++ /dev/null @@ -1,23 +0,0 @@ -class TimeSuite: - """ - An example benchmark that times the performance of various kinds - of iterating over dictionaries in Python. - """ - - def setup(self): - self.d = {} - for x in range(500): - self.d[x] = None - - def time_keys(self): - for key in self.d.keys(): - pass - - def time_values(self): - for value in self.d.values(): - pass - - def time_range(self): - d = self.d - for key in range(500): - d[key]