Skip to content

Instantly share code, notes, and snippets.

@rtyler
Created June 21, 2009 04:02
Show Gist options
  • Select an option

  • Save rtyler/133390 to your computer and use it in GitHub Desktop.

Select an option

Save rtyler/133390 to your computer and use it in GitHub Desktop.
>>> DynamicMethodCompilationTest (1000000 iterations)
% cumulative self
time seconds seconds name
49.86 89.94 72.09 Template.py:1017:__init__
tyler@starfruit:~> cd source/github
49.86 89.94 72.09 Template.py:1017:__init__
21.39 36.98 30.93 Template.py:334:compile
7.46 12.81 10.79 Template.py:1413:_initCheetahInstance
3.70 10.82 5.35 DynamicallyCompiledCheetahTemplate.py:66:testMethod
3.53 5.11 5.11 VerifyType.py:40:VerifyType
2.81 4.07 4.07 DummyTransaction.py:64:__init__
1.98 92.81 2.87 DynamicallyCompiledCheetahTemplate.py:55:__init__
1.85 143.28 2.67 Performance.py:106:performanceSample
1.25 1.81 1.81 Servlet.py:51:__init__
1.21 1.74 1.74 Template.py:121:valOrDefault
1.13 2.27 1.63 VerifyType.py:56:VerifyTypeClass
0.99 1.42 1.42 Indenter.py:95:__init__
0.91 144.59 1.31 Performance.py:91:runTest
0.58 1.41 0.83 DummyTransaction.py:67:response
0.41 0.59 0.59 Filters.py:17:__init__
0.40 0.58 0.58 DummyTransaction.py:22:__init__
0.29 0.42 0.42 Template.py:330:_getCompilerSettings
0.25 0.37 0.37 Template.py:326:_getCompilerClass
0.01 0.02 0.02 Template.py:962:_addCheetahPlumbingCodeToClass
0.00 144.59 0.00 unittest.py:245:run
0.00 144.59 0.00 unittest.py:427:__call__
0.00 144.59 0.00 unittest.py:793:runTests
0.00 144.59 0.00 unittest.py:420:run
0.00 144.59 0.00 unittest.py:692:run
0.00 144.59 0.00 Performance.py:3:?
0.00 144.59 0.00 unittest.py:280:__call__
0.00 144.59 0.00 unittest.py:743:__init__
0.00 0.02 0.00 DynamicallyCompiledCheetahTemplate.py:8:?
---
Sample count: 9033
Total time: 144.590000 seconds
.>>> DynamicSimpleCompilationTest (1000000 iterations)
% cumulative self
time seconds seconds name
47.30 181.17 144.98 Template.py:1017:__init__
20.15 73.66 61.75 Template.py:334:compile
7.43 26.92 22.76 Template.py:1413:_initCheetahInstance
3.31 10.15 10.15 VerifyType.py:40:VerifyType
2.68 8.21 8.21 DummyTransaction.py:64:__init__
2.34 23.14 7.17 cheetah_DynamicallyCompiledCheetahTemplate_1245551445_81_23877.py:66:respond
1.87 186.90 5.73 DynamicallyCompiledCheetahTemplate.py:55:__init__
1.74 10.82 5.35 DynamicallyCompiledCheetahTemplate.py:66:testMethod
1.71 5.25 5.25 Filters.py:26:filter
1.24 26.95 3.81 Template.py:995:__str__
1.16 3.55 3.55 Template.py:121:valOrDefault
1.12 3.43 3.43 Servlet.py:51:__init__
1.04 306.53 3.20 Performance.py:91:runTest
0.92 2.82 2.82 Indenter.py:95:__init__
0.87 143.27 2.67 Performance.py:106:performanceSample
0.84 3.91 2.56 VerifyType.py:56:VerifyTypeClass
0.80 2.45 2.45 DummyTransaction.py:28:write
0.76 160.06 2.32 Performance.py:121:performanceSample
0.72 2.21 2.21 DummyTransaction.py:35:getvalue
0.68 3.33 2.08 DummyTransaction.py:67:response
0.44 1.34 1.34 Filters.py:17:__init__
0.41 1.25 1.25 DummyTransaction.py:22:__init__
0.28 0.86 0.86 Template.py:330:_getCompilerSettings
0.20 0.61 0.61 Template.py:326:_getCompilerClass
0.01 0.02 0.02 Template.py:962:_addCheetahPlumbingCodeToClass
0.00 306.53 0.00 unittest.py:427:__call__
0.00 306.53 0.00 unittest.py:245:run
0.00 306.53 0.00 unittest.py:280:__call__
0.00 306.53 0.00 unittest.py:743:__init__
0.00 306.53 0.00 unittest.py:793:runTests
0.00 306.53 0.00 Performance.py:3:?
0.00 306.53 0.00 unittest.py:692:run
0.00 306.53 0.00 unittest.py:420:run
0.00 0.02 0.00 DynamicallyCompiledCheetahTemplate.py:8:?
---
Sample count: 19151
Total time: 306.530000 seconds
...
----------------------------------------------------------------------
Ran 4 tests in 307.834s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment