X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/372aaff2b572ce772fafc506e9c57d465eb823f6..697e73b0605b6c182f1051e97ed370d5afa7d954:/sdk/python/tests/performance/test_a_sample.py diff --git a/sdk/python/tests/performance/test_a_sample.py b/sdk/python/tests/performance/test_a_sample.py index cc30ba6051..dff098403d 100644 --- a/sdk/python/tests/performance/test_a_sample.py +++ b/sdk/python/tests/performance/test_a_sample.py @@ -1,10 +1,15 @@ import unittest -from performance_profiler import PerformanceProfiler +from performance_profiler import profiled -class PerformanceTestSample(PerformanceProfiler): - def func(self): - print 'Hello' +class PerformanceTestSample(unittest.TestCase): + def foo(self): + bar = 64 - def test_performance(self): - self.run_profiler('self.func', 'test_sample') + @profiled + def test_profiled_decorator(self): + j = 0 + for i in range(0,2**20): + j += i + self.foo() + print 'Hello'