dff098403dfffbba967b63c67702e7d27251c507
[arvados.git] / sdk / python / tests / performance / test_a_sample.py
1 import unittest
2
3 from performance_profiler import profiled
4
5 class PerformanceTestSample(unittest.TestCase):
6     def foo(self):
7         bar = 64
8
9     @profiled
10     def test_profiled_decorator(self):
11         j = 0
12         for i in range(0,2**20):
13             j += i
14         self.foo()
15         print 'Hello'