We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8933947 commit 651d394Copy full SHA for 651d394
1 file changed
tests/benchmarks/test_bench_unittest.py
@@ -0,0 +1,20 @@
1
+import unittest
2
+
3
+import pytest
4
5
6
+class MyBenchmark(unittest.TestCase):
7
+ def setUp(self):
8
+ # Initialize the benchmark environment
9
+ self.input = (
10
+ "Lorem Ipsum is simply dummy text of the printing and typesetting industry."
11
+ * 100
12
+ )
13
14
+ @pytest.mark.benchmark
15
+ def test_bench_hash(self):
16
+ hash(self.input)
17
18
+ def tearDown(self):
19
+ # Clean up the benchmark environment
20
+ pass
0 commit comments