Merge branch '8784-dir-listings'
[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 from __future__ import print_function
6 from __future__ import absolute_import
7 from builtins import range
8 import unittest
9
10 from .performance_profiler import profiled
11
12 class PerformanceTestSample(unittest.TestCase):
13     def foo(self):
14         bar = 64
15
16     @profiled
17     def test_profiled_decorator(self):
18         j = 0
19         for i in range(0,2**20):
20             j += i
21         self.foo()
22         print('Hello')