15397: Merge branch 'main'
[arvados.git] / sdk / python / tests / performance / test_a_sample.py
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 import unittest
6
7 from .performance_profiler import profiled
8
9 class PerformanceTestSample(unittest.TestCase):
10     def foo(self):
11         bar = 64
12
13     @profiled
14     def test_profiled_decorator(self):
15         j = 0
16         for i in range(0,2**20):
17             j += i
18         self.foo()
19         print('Hello')