tests.profiling.test_profile_gw
Profile GW performance
Classes
- class tests.profiling.test_profile_gw.TestProfileGW(methodName='runTest')
Bases:
TestProfileProfile GW performance
- name = 'gw'
- params = (0.1, 0.1)
- classmethod setup_numba()
Run the command to be profiled before profiling to ensure that it’s already fully Numba-jitted when profiled.
- classmethod test_profile_gw_cprofile()
- classmethod test_profile_gw_pyinstrument()
Pyinstrument is a sampling profiler, and therefore repeating gives more accurate results.
- classmethod test_profile_gw_yappi()
- z = array([ 1. , 1.04761575, 1.09749877, 1.149757 , 1.20450354, 1.26185688, 1.32194115, 1.38488637, 1.45082878, 1.51991108, 1.59228279, 1.66810054, 1.7475284 , 1.83073828, 1.91791026, 2.009233 , 2.10490414, 2.20513074, 2.3101297 , 2.42012826, 2.53536449, 2.65608778, 2.7825594 , 2.91505306, 3.05385551, 3.19926714, 3.35160265, 3.51119173, 3.67837977, 3.85352859, 4.03701726, 4.22924287, 4.43062146, 4.64158883, 4.86260158, 5.09413801, 5.33669923, 5.59081018, 5.85702082, 6.13590727, 6.42807312, 6.73415066, 7.05480231, 7.39072203, 7.74263683, 8.11130831, 8.49753436, 8.90215085, 9.32603347, 9.77009957, 10.23531022, 10.72267222, 11.23324033, 11.76811952, 12.32846739, 12.91549665, 13.53047775, 14.17474163, 14.84968262, 15.55676144, 16.29750835, 17.07352647, 17.88649529, 18.73817423, 19.6304065 , 20.56512308, 21.5443469 , 22.5701972 , 23.64489413, 24.77076356, 25.95024211, 27.18588243, 28.48035868, 29.8364724 , 31.2571585 , 32.74549163, 34.30469286, 35.93813664, 37.64935807, 39.44206059, 41.320124 , 43.28761281, 45.34878508, 47.50810162, 49.77023564, 52.14008288, 54.62277218, 57.22367659, 59.94842503, 62.80291442, 65.79332247, 68.92612104, 72.20809018, 75.64633276, 79.24828984, 83.02175681, 86.97490026, 91.11627561, 95.45484567, 100. ])