python logo

Evaluating Python Implementations

We have also evaluated the execution of 14 large scale applications including the Django, Web2py and PyramidWeb frameworks, the Cog code generation tool, the BlindElephantWeb application fingerprinter, and the Volatility memory forensics framework, among others. Although these applications combine code of different code categories, we have also detected dissimilar performance results for some implementations. Therefore, a Python profiler has been used (http://docs.python.org/2/library/profile.html#module-profile) to analyze the influence of the predominant category on execution time. The following tables show the profiler output and the categories identified in their execution trace. Profiler output has been cut to include only the most representative operations within each execution for the sake of brevity.

  1. 2to3 python code translation
  2. Bazaar version control
  3. BlindElephant web application fingerprinter
  4. Cog code generation tool
  5. Django template system
  6. Html5 library
  7. Mako template system
  8. Pyramid web framework
  9. Rietveld code review
  10. Spam Bayesian classifier
  11. Spitfire template system
  12. SQLMap Injection testing tool
  13. Volatility forensics framework
  14. Web2Py web framework

The column headings in the table include:

  • ncalls: the number of invocations to the given function.
  • tottime: the total execution time spent in the function (and excluding time made in calls to sub-functions).
  • percall: is the quotient of tottime divided by ncalls.
  • cumtime: is the cumulative time spent in this and all subfunctions (from invocation till exit). This figure is accurate even for recursive functions.
  • percall: is the quotient of cumtime divided by the primitive calls.
  • filename:lineno(function): provides the respective data of each function.
  • Category: the category identified in the micro-benchmark classification.

2to3 Python code translation

ncalls tottime percall cumtime percall filename:lineno(function) Category
83312 0.654 0.000 0.654 0.000 :0(read) I/O
60 0.542 0.009 1.929 0.032 pickle.py:888(load) I/O
63973/29199 0.450 0.000 0.796 0.000 pytree.py:55(__eq__) Metaprogramming
6359 0.440 0.000 1.780 0.000 parse.py:113(addtoken) Common
21168/9099 0.294 0.000 0.704 0.000 pytree.py:285(_eq) Common
12460 0.288 0.000 0.695 0.000 parse.py:191(pop) Common
24937/5058 0.239 0.000 0.266 0.000 pytree.py:294(post_order) Common
76862 0.211 0.000 0.211 0.000 :0(append) Common
42081/41785 0.206 0.000 0.215 0.000 :0(len) Common
16940/2790 0.206 0.000 0.254 0.000 pytree.py:301(pre_order) Common
17030/3341 0.189 0.000 0.216 0.000 pytree.py:215(leaves) Common
6359 0.173 0.000 0.390 0.000 parse.py:175(shift) Common
13779 0.161 0.000 0.205 0.000 pytree.py:50(__new__) Common
7282 0.151 0.000 0.303 0.000 tokenize.py:345(generate_tokens) Metaprogramming, I/O, Multithreading
15746 0.144 0.000 0.268 0.000 pickle.py:972(load_binint1) I/O
10109 0.140 0.000 0.190 0.000 pickle.py:1211(load_binput) I/O
59 0.131 0.002 2.303 0.039 driver.py:38(parse_tokens) Common
10779/3970 0.130 0.000 0.165 0.000 btm_utils.py:275(rec_test) Common
2889/45 0.124 0.000 1.112 0.025 btm_utils.py:104(reduce_tree) Common
6359 0.124 0.000 0.131 0.000 parse.py:161(classify) Common
1331 0.119 0.000 0.913 0.001 :0(index) Common
149 0.116 0.001 0.383 0.003 btm_matcher.py:83(run) Common
27808 0.109 0.000 0.109 0.000 :0(isinstance) Metaprogramming
10254 0.103 0.000 0.172 0.000 pytree.py:429(convert) Common
6218/1303 0.092 0.000 0.386 0.000 pytree.py:862(generate_matches) Common
6782 0.088 0.000 0.088 0.000 :0(match) Common
8565 0.084 0.000 0.308 0.000 patcomp.py:195(pattern_convert) Common
4480/1317 0.083 0.000 0.372 0.000 pytree.py:488(match) Common
12401 0.081 0.000 0.124 0.000 parse.py:184(push) Common
7977/1038 0.073 0.000 0.073 0.000 btm_utils.py:96(leaves) Common
2985/434 0.072 0.000 0.389 0.001 pytree.py:812(_recursive_matches) Common
14561 0.067 0.000 0.067 0.000 :0(pop) Common
7940 0.067 0.000 0.067 0.000 pytree.py:360(__init__) Common
1835/141 0.065 0.000 0.465 0.003 patcomp.py:139(compile_basic) Common
29048 0.064 0.000 0.064 0.000 :0(ord) Common
1113 0.063 0.000 0.090 0.000 pytree.py:400(clone) Common
13257 0.063 0.000 0.063 0.000 :0(get) Common
3582/58 0.060 0.000 0.479 0.008 patcomp.py:68(compile_node) Common
1476 0.060 0.000 0.073 0.000 pickle.py:1221(load_append) Common
2319 0.059 0.000 0.070 0.000 pytree.py:469(__new__) Common
16511 0.057 0.000 0.057 0.000 :0(__new__) Common
1161/2 0.055 0.000 0.100 0.050 pytree.py:274(__unicode__) Common
4609 0.055 0.000 0.269 0.000 patcomp.py:33(tokenize_wrapper) Common
23305 0.052 0.000 0.052 0.000 pytree.py:396(_eq) Common
1063 0.049 0.000 0.050 0.000 :0(write) I/O
...

Bazaar version control

ncalls tottime percall cumtime percall filename:lineno(function) Category
1 0.040 0.040 0.040 0.040 :0(enable) Common
1 0.006 0.006 0.014 0.014 xmlrpclib.py:137(<module>) Common
32/28 0.005 0.000 0.045 0.002 :0(__import__) Common
1 0.005 0.005 0.007 0.007 win32utils.py:20(<module>) Common
1 0.004 0.004 0.005 0.005 errors.py:18(<module>) Common
1 0.004 0.004 0.005 0.005 lock.py:35(<module>) Multithreading
1 0.004 0.004 0.031 0.031 lp_registration.py:18(<module>) Common
7 0.004 0.001 0.099 0.014 __init__.py:17(<module>) Common
44 0.004 0.000 0.014 0.000 decorators.py:69(_pretty_needs_read_lock) Multithreading
8 0.003 0.000 0.004 0.001 collections.py:237(namedtuple) Common
1 0.003 0.003 0.003 0.003 socket.py:45(<module>) Common
31 0.003 0.000 0.005 0.000 decorators.py:154(_pretty_needs_write_lock) Multithreading
1 0.003 0.003 0.048 0.048 builtins.py:17(<module>) Common
1 0.003 0.003 0.004 0.004 urllib.py:23(<module>) Common
1 0.002 0.002 0.003 0.003 tempfile.py:18(<module>) Common
1 0.002 0.002 0.177 0.177 launcher.py:1(<module>) Common
1 0.002 0.002 0.003 0.003 __init__.py:4(<module>) Common
1 0.002 0.002 0.006 0.006 btree_index.py:18(<module>) Common
1 0.002 0.002 0.003 0.003 __init__.py:27(<module>) Common
89/6 0.002 0.000 0.089 0.015 <string>:1(<module>) Common
1 0.002 0.002 0.011 0.011 osutils.py:17(<module>) Common
75 0.002 0.000 0.012 0.000 decorators.py:28(_get_parameters) Common
1 0.002 0.002 0.002 0.002 __init__.py:24(<module>) Common
1 0.002 0.002 0.005 0.005 mimetools.py:1(<module>) Common
1 0.002 0.002 0.023 0.023 bzr.py:19(<module>) Common
1 0.002 0.002 0.007 0.007 inspect.py:25(<module>) Common
1 0.001 0.001 0.001 0.001 getpass.py:12(<module>) Common
1 0.001 0.001 0.002 0.002 collections.py:1(<module>) Common
1 0.001 0.001 0.017 0.017 pack_repo.py:17(<module>) Common
78 0.001 0.000 0.003 0.000 lazy_import.py:303(_convert_from_str) Common
1 0.001 0.001 0.006 0.006 progress.py:22(<module>) Common
1 0.001 0.001 0.001 0.001 configobj.py:20(<module>) Common
33 0.001 0.000 0.002 0.000 lazy_import.py:333(_canonicalize_import_text) Common
...

BlindElephant web application fingerprinter

ncalls tottime percall cumtime percall filename:lineno(function) Category
230512 0.345 0.000 0.345 0.000 :0(read) I/O
1 0.287 0.287 0.985 0.985 cPickle.py:159(load) I/O, Metaprogramming
4 0.165 0.041 0.165 0.041 :0(recv) Common
1 0.110 0.110 1.369 1.369 launcher.py:1(<module>) Common
47664 0.072 0.000 0.177 0.000 cPickle.py:460(load_binget) I/O, Metaprogramming
32073 0.044 0.000 0.113 0.000 cPickle.py:465(load_long_binget) I/O, Metaprogramming
176529 0.041 0.000 0.041 0.000 :0(ord) Common
14926 0.035 0.000 0.068 0.000 cPickle.py:479(load_long_binput) I/O, Metaprogramming
97855 0.026 0.000 0.026 0.000 :0(append) Common
94920 0.025 0.000 0.025 0.000 :0(repr) Common
6996 0.014 0.000 0.041 0.000 cPickle.py:295(load_short_binstring) I/O, Metaprogramming
433 0.011 0.000 0.017 0.000 cPickle.py:505(load_setitems) I/O, Metaprogramming
4263 0.011 0.000 0.014 0.000 cPickle.py:135(pop) Common
3854 0.011 0.000 0.013 0.000 cPickle.py:186(marker) Common
47045 0.010 0.000 0.010 0.000 :0(loads) Common
1901 0.008 0.000 0.020 0.000 cPickle.py:497(load_setitem) Common
3320 0.007 0.000 0.017 0.000 cPickle.py:489(load_appends) Common
8 0.007 0.001 0.007 0.001 urllib.py:1002(__init__) Common
3854 0.006 0.000 0.008 0.000 cPickle.py:554(load_mark) Common
3578 0.006 0.000 0.008 0.000 cPickle.py:321(load_empty_list) Common
1 0.005 0.005 0.037 0.037 urllib2.py:1(<module>) Common
...

Cog code generation tool

ncalls tottime percall cumtime percall filename:lineno(function) Category
2006 0.007 0.000 0.007 0.000 cogapp.py:151(out) Common
24 0.006 0.000 0.006 0.000 sre_parse.py:201(match) Common
1003 0.005 0.000 0.012 0.000 cogapp.py:165(outl) Common
11/3 0.004 0.000 0.005 0.002 sre_compile.py:32(_compile) Common
17/9 0.003 0.000 0.003 0.000 sre_parse.py:146(getwidth) Common
6 0.003 0.001 0.008 0.001 whiteutils.py:11(whitePrefix) Metaprogramming
1280/1273 0.003 0.000 0.003 0.000 :0(len) Common
23 0.003 0.000 0.003 0.000 copy.py:267(_keep_alive) Common
1025 0.002 0.000 0.002 0.000 :0(strip) Common
1 0.002 0.002 0.003 0.003 programListBenchmarks.py:1(<module>) Common
32 0.002 0.000 0.002 0.000 :0(write) I/O
2 0.002 0.001 0.002 0.001 <string>:1(<module>) Common
1 0.002 0.002 0.008 0.008 cogapp.py:1(<module>) Common
4 0.002 0.000 0.009 0.002 whiteutils.py:36(reindentBlock) Metaprogramming
2 0.002 0.001 0.002 0.001 :0(close) I/O
1250 0.001 0.000 0.001 0.000 :0(append) Common
1 0.001 0.001 0.001 0.001 :0(setprofile) Common
1 0.001 0.001 0.062 0.062 cog.py:7(run) Common
05-mar 0.001 0.000 0.010 0.003 sre_parse.py:385(_parse) Common
1 0.001 0.001 0.063 0.063 runCog.py:25(run) Common
1030 0.001 0.000 0.001 0.000 :0(range) Common
1 0.001 0.001 0.008 0.008 __init__.py:1(<module>) Common
75 0.001 0.000 0.003 0.000 sre_parse.py:188(__next) Common
1 0.001 0.000 0.036 0.036 cogapp.py:345(processFile) I/O
196 0.001 0.000 0.000 0.000 :0(isinstance) Metaprogramming
6 0.001 0.000 0.001 0.000 datetime.py:436(__new__) Common
2 0.001 0.000 0.000 0.000 :0(compile) Common
31-ene 0.001 0.000 0.003 0.003 copy.py:145(deepcopy) Metaprogramming
1 0.001 0.000 0.001 0.001 io.py:1(<module>) Common
31 0.001 0.000 0.000 0.000 :0(readline) I/O
62 0.001 0.000 0.003 0.000 sre_parse.py:207(get) Common
1 0.001 0.000 0.001 0.001 datetime.py:1(<module>) Common
1 0.001 0.000 0.000 0.001 hashlib.py:7(<module>) Common
53 0.001 0.000 0.000 0.000 sre_parse.py:136(__getitem__) Metaprogramming
8 0.001 0.000 0.001 0.000 abc.py:148(__subclasscheck__) Common
1 0.001 0.000 0.000 0.001 cogapp.py:321(openOutputFile) I/O
31 0.001 0.000 0.000 0.000 cogapp.py:187(readline) I/O
4 0.001 0.000 0.000 0.000 abc.py:86(__new__) Common
1 0.001 0.000 0.000 0.001 cogapp.py:335(openInputFile) I/O
...

Django template system

ncalls tottime percall cumtime percall filename:lineno(function) Category
1895437 1.189 0.000 1.733 0.000 encoding.py:37(force_unicode) Common
7856286 1.173 0.000 1.173 0.000 :0(isinstance) Metaprogramming
1812/12 0.574 0.000 7.491 0.624 defaulttags.py:115(render) Common
271812 0.448 0.000 2.337 0.000 __init__.py:533(resolve) Common
1824/12 0.419 0.000 7.494 0.625 __init__.py:764(render) Common
270000 0.414 0.000 1.415 0.000 html.py:30(escape) I/O
270000 0.379 0.000 5.185 0.000 __init__.py:800(render) Common
1350026 0.345 0.000 0.345 0.000 :0(replace) Common
270000 0.339 0.000 1.930 0.000 functional.py:246(wrapper) Common
1637253 0.301 0.000 0.301 0.000 :0(append) Common
270000 0.294 0.000 1.279 0.000 defaultfilters.py:34(_dec) Common
270000 0.283 0.000 0.455 0.000 safestring.py:104(mark_for_escaping) Common
271824 0.262 0.000 0.433 0.000 safestring.py:89(mark_safe) Common
271812 0.171 0.000 0.300 0.000 __init__.py:690(_resolve_lookup) Common
273612 0.132 0.000 0.132 0.000 context.py:38(__getitem__) Common
270000 0.131 0.000 0.131 0.000 :0(values) Common
270000 0.126 0.000 0.580 0.000 defaultfilters.py:375(escape) Common
271812 0.123 0.000 0.423 0.000 __init__.py:672(resolve) Common
543624 0.106 0.000 0.106 0.000 __init__.py:790(render) Common
273612 0.102 0.000 0.102 0.000 context.py:34(__setitem__) Common
540687/540685 0.097 0.000 0.097 0.000 :0(getattr) Metaprogramming
272036 0.050 0.000 0.050 0.000 :0(hasattr) Common
1 0.046 0.046 7.854 7.854 launcher.py:1(<module>) Common
1909 0.034 0.000 0.034 0.000 :0(join) Common
2961 0.028 0.000 0.031 0.000 sre_parse.py:188(__next) Common
30 0.027 0.001 0.028 0.001 sre_compile.py:258(_mk_bitmap) Common
238/32 0.018 0.000 0.092 0.003 sre_parse.py:385(_parse) Common
167 0.018 0.000 0.052 0.000 sre_compile.py:207(_optimize_charset) Common
2140 0.016 0.000 0.021 0.000 sre_parse.py:136(__getitem__) Metaprogramming
2493 0.012 0.000 0.041 0.000 sre_parse.py:207(get) Common
478/29 0.012 0.000 0.080 0.003 sre_compile.py:32(_compile) Common
14793/14537 0.010 0.000 0.013 0.000 :0(len) Common
661/225 0.009 0.000 0.010 0.000 sre_parse.py:146(getwidth) Common
955 0.008 0.000 0.009 0.000 sre_parse.py:132(__len__) Common
9 0.007 0.001 0.008 0.001 abc.py:86(__new__) Common
9 0.006 0.001 0.010 0.001 collections.py:239(namedtuple) Common
8 0.006 0.001 0.281 0.035 __init__.py:1(<module>) Common
1812 0.005 0.000 0.007 0.000 context.py:29(pop) Common
1 0.005 0.005 0.021 0.021 urllib.py:1(<module>) Common
1812 0.005 0.000 0.005 0.000 context.py:24(push) Common
1812 0.004 0.000 0.004 0.000 context.py:49(has_key) Common
145/29 0.004 0.000 0.093 0.003 sre_parse.py:307(_parse_sub) Common
485 0.004 0.000 0.004 0.000 urllib.py:1199(<genexpr>) Common
1 0.004 0.004 0.007 0.007 opcode.py:1(<module>) Common
485 0.004 0.000 0.004 0.000 urlparse.py:315(<genexpr>) Common
1 0.003 0.003 0.029 0.029 decimal.py:20(<module>) Common
1345 0.003 0.000 0.006 0.000 sre_parse.py:201(match) Common
1 0.003 0.003 0.034 0.034 defaultfilters.py:1(<module>) Common
377 0.003 0.000 0.003 0.000 collections.py:279(<genexpr>) Common
1 0.003 0.003 0.006 0.006 sre_compile.py:301(_optimize_unicode) Common
123 0.003 0.000 0.003 0.000 opcode.py:26(def_op) Common
1 0.003 0.003 0.024 0.024 utils.py:5(<module>) Common
144 0.003 0.000 0.003 0.000 :0(startswith) Common
1 0.002 0.002 0.002 0.002 programListBenchmarks.py:1(<module>) Common
735 0.002 0.000 0.003 0.000 sre_parse.py:144(append) Common
1 0.002 0.002 0.180 0.180 bm_django.py:3(<module>) Common
1 0.002 0.002 0.004 0.004 socket.py:4(<module>) Common
167 0.002 0.000 0.055 0.000 sre_compile.py:178(_compile_charset) Common
1 0.002 0.002 0.023 0.023 encoding.py:1(<module>) Common
1 0.002 0.002 0.123 0.123 subprocess.py:12(<module>) Common
4 0.002 0.000 0.061 0.015 :0(__import__) Common
1 0.002 0.002 0.113 0.113 msvcrt.py:1(<module>) Common
256 0.002 0.000 0.002 0.000 :0(setdefault) Common
1 0.002 0.002 0.099 0.099 inspect.py:2(<module>) Common
1 0.002 0.002 0.046 0.046 text.py:1(<module>) Common
1 0.001 0.001 0.002 0.002 socket.py:173(_socketobject) Common
...

Html5 library

ncalls tottime percall cumtime percall filename:lineno(function) Category
1688750 42.772 0.000 270.263 0.000 tokenizer.py:59(__iter__) Common
1688750 31.880 0.000 311.506 0.000 html5parser.py:196(normalizedTokens) Common
1688690 29.879 0.000 62.377 0.000 tokenizer.py:255(dataState) Common
6719875 25.559 0.000 26.070 0.000 inputstream.py:318(char) Common
1311655 24.247 0.000 41.352 0.000 inputstream.py:405(charsUntil) Common
5 19.288 3.858 527.481 105.496 html5parser.py:150(mainLoop) Common
5062309 18.769 0.000 18.769 0.000 :0(append) Common
1291700 15.406 0.000 23.739 0.000 simpletree.py:33(appendChild) Common
851495 13.202 0.000 43.934 0.000 simpletree.py:41(insertText) Common
1840290 13.201 0.000 31.605 0.000 tokenizer.py:408(tagNameState) Common
851495 12.990 0.000 61.171 0.000 _base.py:280(insertText) Common
837230 12.921 0.000 17.265 0.000 tokenizer.py:349(tagOpenState) Common
430815 12.823 0.000 31.504 0.000 _base.py:255(insertElementNormal) Common
543610 12.363 0.000 26.439 0.000 tokenizer.py:818(attributeNameState) Common
1099794 10.658 0.000 10.658 0.000 :0(translate) Common
551305 10.265 0.000 13.429 0.000 _base.py:131(elementInScope) Common
851495 10.233 0.000 14.075 0.000 simpletree.py:147(__init__) Common
216565 9.889 0.000 18.519 0.000 html5parser.py:1340(endTagFormatting) Common
1688745 9.363 0.000 9.363 0.000 html5parser.py:237(normalizeToken) Common
431160 9.337 0.000 23.324 0.000 tokenizer.py:954(attributeValueUnQuotedState) Common
827865 8.813 0.000 19.213 0.000 tokenizer.py:232(emitCurrentToken) Common
233905 8.637 0.000 16.122 0.000 tokenizer.py:184(entitiesStartingWith) Common
525005 8.605 0.000 49.232 0.000 html5parser.py:946(processCharacters) Common
927635 7.900 0.000 11.446 0.000 utils.py:35(__getitem__) Common
2475259 7.515 0.000 7.515 0.000 :0(startswith) Common
55870 7.376 0.000 29.578 0.001 tokenizer.py:146(consumeEntity) Common
490445/430780 7.087 0.000 69.628 0.000 html5parser.py:446(processStartTag) Common
437190/398665 7.077 0.000 43.193 0.000 html5parser.py:459(processEndTag) Common
397065 6.591 0.000 8.671 0.000 tokenizer.py:384(closeTagOpenState) Common
1704420 6.441 0.000 6.441 0.000 :0(join) Common
1006945 6.393 0.000 6.961 0.000 _base.py:150(reconstructActiveFormattingElements) Common
1291710 6.070 0.000 6.070 0.000 simpletree.py:8(__init__) Common
271805 6.054 0.000 8.892 0.000 tokenizer.py:793(beforeAttributeNameState) Common
1415027 6.024 0.000 6.024 0.000 :0(get) Common
430820 5.666 0.000 7.871 0.000 simpletree.py:164(__init__) Common
1688745 5.436 0.000 5.436 0.000 :0(popleft) Common
1829022 5.110 0.000 5.110 0.000 :0(isinstance) Common
1313300 4.888 0.000 4.888 0.000 :0(match) Common
271805 4.443 0.000 5.814 0.000 tokenizer.py:895(beforeAttributeValueState) Common
851495 4.246 0.000 4.246 0.000 _base.py:241(_getInsertFromTable) Common
216565 3.264 0.000 20.294 0.000 html5parser.py:917(addFormattingElement) Common
213470 3.185 0.000 20.670 0.000 html5parser.py:951(processSpaceCharacters) Common
1087400 3.083 0.000 3.083 0.000 :0(end) Common
787560 3.063 0.000 3.063 0.000 simpletree.py:71(getNameTuple) Common
195895/188065 2.621 0.000 2.662 0.000 _base.py:321(generateImpliedEndTags) Common
528323 2.464 0.000 2.464 0.000 :0(pop) Common
121300 1.930 0.000 14.626 0.000 html5parser.py:1039(startTagA) Common
337865 1.923 0.000 1.923 0.000 _base.py:201(elementInActiveFormattingElements) Common
44780 1.913 0.000 8.305 0.000 html5parser.py:1003(startTagListItem) Common
596088 1.895 0.000 1.895 0.000 :0(reversed) Common
47965 1.744 0.000 5.609 0.000 html5parser.py:1684(flushCharacters) Common
42495 1.450 0.000 3.612 0.000 html5parser.py:2095(endTagTableCell) Common
2175 1.317 0.001 1.317 0.001 :0(charmap_decode) Common
95265 1.241 0.000 10.993 0.000 html5parser.py:1052(startTagFormatting) Common
43435 1.125 0.000 2.849 0.000 html5parser.py:1308(endTagListItem) Common
66365 1.028 0.000 1.957 0.000 tokenizer.py:924(attributeValueDoubleQuotedState) Common
49470 1.021 0.000 1.887 0.000 html5parser.py:1480(endTagOther) Common
216565 1.008 0.000 1.008 0.000 :0(index) Common
387197/387040 0.983 0.000 0.985 0.000 :0(len) Common
56145 0.964 0.000 2.744 0.000 tokenizer.py:975(afterAttributeValueState) Common
51715 0.911 0.000 7.278 0.000 html5parser.py:982(startTagCloseP) Common
42495 0.824 0.000 4.361 0.000 html5parser.py:1998(startTagTableCell) Common
216611 0.795 0.000 0.795 0.000 :0(remove) Common
49470 0.725 0.000 4.478 0.000 html5parser.py:1241(startTagOther) Common
55830 0.711 0.000 30.228 0.001 tokenizer.py:279(entityDataState) Common
34980 0.686 0.000 1.949 0.000 html5parser.py:1245(endTagP) Common
62670 0.656 0.000 5.050 0.000 html5parser.py:443(processSpaceCharacters) Common
18505 0.648 0.000 1.197 0.000 tokenizer.py:1126(commentEndDashState) Common
56980 0.645 0.000 6.333 0.000 html5parser.py:2076(processCharacters) Common
47375 0.633 0.000 0.796 0.000 html5parser.py:1579(processSpaceCharacters) Common
42545 0.588 0.000 0.780 0.000 _base.py:196(clearActiveFormattingElements) Common
36610 0.524 0.000 9.709 0.000 html5parser.py:1711(processStartTag) Common
...

Mako template system

ncalls tottime percall cumtime percall filename:lineno(function) Category
22 0.492 0.022 1.943 0.088 memory:0x233c550:14(render_body) Common
495038 0.443 0.000 0.443 0.000 {method 'sub' of '_sre.SRE_Pattern' objects} Common
1491644 0.256 0.000 0.256 0.000 {method 'write' of cStringIO.StringIO objects} Common
495223 0.252 0.000 0.335 0.000 re.py:226(_compile) Common
495038 0.247 0.000 1.007 0.000 re.py:144(sub) Common
495000 0.188 0.000 1.195 0.000 filters.py:23(legacy_html_escape) Common
495567 0.065 0.000 0.065 0.000 {method 'get' of dict objects} Common
1 0.004 0.004 0.012 0.012 urllib.py:23(<module>) Common
1 0.004 0.004 0.017 0.017 filters.py:8(<module>) Common
1 0.004 0.004 0.004 0.004 shutil.py:5(<module>) Common
1 0.003 0.003 0.051 0.051 template.py:9(<module>) Common
238/43 0.003 0.000 0.008 0.000 sre_parse.py:379(_parse) Common
1 0.003 0.003 0.003 0.003 socket.py:45(<module>) Common
8 0.002 0.000 0.003 0.000 collections.py:237(namedtuple) Common
1 0.002 0.002 2.016 2.016 launcher.py:1(<module>) Common
1 0.002 0.002 0.005 0.005 tempfile.py:18(<module>) Common
162 0.002 0.000 0.003 0.000 sre_compile.py:207(_optimize_charset) Common
452/42 0.002 0.000 0.007 0.000 sre_compile.py:32(_compile) Common
2707 0.002 0.000 0.002 0.000 sre_parse.py:182(__next) Common
1 0.002 0.002 0.015 0.015 inspect.py:25(<module>) Common
1 0.001 0.001 0.002 0.002 collections.py:1(<module>) Common
1 0.001 0.001 0.003 0.003 random.py:40(<module>) Common
22 0.001 0.000 0.001 0.000 {method 'getvalue' of cStringIO.StringIO objects} Common
...

Pyramid Web Framework

ncalls tottime percall cumtime percall filename:lineno(function) Category
1 1.841 1.841 1.841 1.841 :0(gethostbyaddr) I/O
803/158 0.036 0.000 0.115 0.001 sre_parse.py:379(_parse) Metaprogramming
1542/138 0.035 0.000 0.092 0.001 sre_compile.py:32(_compile) Common
22895 0.028 0.000 0.028 0.000 :0(append) Common
27782/26968 0.024 0.000 0.025 0.000 :0(len) Common
7791 0.018 0.000 0.026 0.000 sre_parse.py:182(__next) Common
180/176 0.015 0.000 0.047 0.000 pkg_resources.py:1686(find_on_path) Common
497 0.013 0.000 0.022 0.000 sre_compile.py:207(_optimize_charset) Common
2135/750 0.013 0.000 0.017 0.000 sre_parse.py:140(getwidth) Common
2 0.011 0.006 0.304 0.152 request.py:1(<module>) Common
13 0.011 0.001 0.830 0.064 __init__.py:1(<module>) Common
2 0.009 0.005 0.086 0.043 compat.py:1(<module>) Common
134 0.009 0.000 0.009 0.000 :0(find_module) Common
601/139 0.008 0.000 0.118 0.001 sre_parse.py:301(_parse_sub) Common
7194 0.008 0.000 0.008 0.000 :0(endswith) Common
6600 0.008 0.000 0.012 0.000 sre_parse.py:130(__getitem__) Metaprogramming
6024 0.008 0.000 0.028 0.000 sre_parse.py:201(get) Common
248 0.008 0.000 0.008 0.000 :0(QueryValueEx) Common
10137 0.007 0.000 0.007 0.000 :0(isinstance) Metaprogramming
2362 0.006 0.000 0.006 0.000 :0(ord) Common
4668 0.005 0.000 0.005 0.000 :0(lower) Common
63 0.005 0.000 0.005 0.000 :0(listdir) Common
1 0.005 0.005 0.005 0.005 shutil.py:5(<module>) Common
2 0.005 0.002 0.025 0.013 response.py:1(<module>) Common
135 0.005 0.000 0.006 0.000 sre_compile.py:258(_mk_bitmap) Common
1 0.005 0.005 0.008 0.008 compat.py:3(<module>) Common
649 0.005 0.000 0.008 0.000 tokenize.py:264(generate_tokens) Common
2 0.004 0.002 0.004 0.002 platform.py:534(_win32_getvalue) Common
1 0.004 0.004 0.007 0.007 tempfile.py:18(<module>) Common
4950 0.004 0.000 0.010 0.000 sre_parse.py:195(match) Common
497 0.004 0.000 0.028 0.000 sre_compile.py:178(_compile_charset) Common
254/253 0.004 0.000 0.020 0.000 interface.py:222(changed) Common
2 0.004 0.002 0.212 0.106 template.py:1(<module>) Common
3405 0.004 0.000 0.004 0.000 :0(min) Common
134 0.003 0.000 0.003 0.000 :0(_isdir) Common
138 0.003 0.000 0.023 0.000 sre_compile.py:361(_compile_info) Common
1 0.003 0.003 0.010 0.010 urllib.py:23(<module>) Common
2479 0.003 0.000 0.004 0.000 sre_parse.py:138(append) Common
14/13 0.003 0.000 0.071 0.005 :0(__import__) Common
8 0.003 0.000 0.004 0.001 collections.py:237(namedtuple) Common
246 0.003 0.000 0.003 0.000 :0(OpenKey) Common
2 0.003 0.001 0.006 0.003 i18n.py:1(<module>) Common
3613 0.003 0.000 0.003 0.000 :0(getattr) Metaprogramming
3656 0.003 0.000 0.003 0.000 :0(get) Common
1 0.003 0.003 0.003 0.003 socket.py:45(<module>) Common
1 0.003 0.003 0.555 0.555 pyramidTest.py:2(<module>) Common
184 0.003 0.000 0.005 0.000 ntpath.py:398(normpath) Common
3018 0.003 0.000 0.004 0.000 sre_parse.py:126(__len__) Common
193 0.003 0.000 0.004 0.000 interface.py:639(fromFunction) Common
1 0.002 0.002 0.004 0.004 pickle.py:25(<module>) Common
1709 0.002 0.000 0.003 0.000 interface.py:545(__hash__) Common
744 0.002 0.000 0.002 0.000 :0(match) Common
621 0.002 0.000 0.004 0.000 interface.py:514(__cmp) Common
1 0.002 0.002 2.409 2.409 launcher.py:1(<module>) Common
2 0.002 0.001 0.002 0.001 :0(gethostname) Common
84 0.002 0.000 0.016 0.000 interface.py:308(__init__) Common
1 0.002 0.002 0.008 0.008 filters.py:8(<module>) Common
1 0.002 0.002 0.007 0.007 platform.py:553(win32_ver) Common
1 0.002 0.002 0.026 0.026 mako_templating.py:1(<module>) Common
107 0.002 0.000 0.002 0.000 :0(access) Common
88 0.002 0.000 0.002 0.000 :0(stat) Common
1 0.002 0.002 0.002 0.002 pygmentplugin.py:7(<module>) Common
262 0.002 0.000 0.004 0.000 ro.py:24(mergeOrderings) Common
6 0.002 0.000 0.011 0.002 tokenize.py:174(tokenize_loop) Common
1 0.002 0.002 0.017 0.017 datetime_utils.py:1(<module>) Common
1 0.002 0.002 0.002 0.002 __init__.py:4(<module>) Common
403 0.002 0.000 0.241 0.001 re.py:226(_compile) Common
1 0.002 0.002 0.016 0.016 BaseHTTPServer.py:18(<module>) Common
606 0.002 0.000 0.004 0.000 sre_compile.py:354(_simple) Common
1 0.002 0.002 0.030 0.030 simple_server.py:11(<module>) Common
121 0.002 0.000 0.002 0.000 pkg_resources.py:2530(_get_mro) Common
1 0.002 0.002 0.186 0.186 chameleon_text.py:1(<module>) Common
1 0.002 0.002 0.033 0.033 compiler.py:1(<module>) Common
1 0.002 0.002 0.007 0.007 utils.py:5(<module>) Common
1 0.002 0.002 0.046 0.046 tales.py:1(<module>) Common
1 0.002 0.002 0.016 0.016 mimetypes.py:228(read_windows_registry) Common
1 0.002 0.002 0.010 0.010 utils.py:1(<module>) Common
1 0.002 0.002 0.002 0.002 interface.py:15(<module>) Common
1 0.002 0.002 0.003 0.003 random.py:40(<module>) Common
1 0.002 0.002 0.002 0.002 __init__.py:24(<module>) Common
17/2 0.002 0.000 0.556 0.278 <string>:1(<module>) Common
262 0.002 0.000 0.003 0.000 ro.py:58(_flatten) Common
...

Rietveld code review

ncalls tottime percall cumtime percall filename:lineno(function) Category
1461243 6.558 0.000 6.558 0.000 :0(isinstance) Metaprogramming
30502/302 5.002 0.000 78.156 0.259 __init__.py:764(render) Metaprogramming
221711 3.082 0.000 5.526 0.000 encoding.py:37(force_unicode) Common
59192 2.499 0.000 6.199 0.000 __init__.py:690(_resolve_lookup) Metaprogramming
41087/1511 2.472 0.000 6.934 0.005 __init__.py:773(get_nodes_by_type) Common
15744/605 2.388 0.000 17.460 0.029 __init__.py:254(parse) Common
42 2.036 0.048 8.387 0.200 __init__.py:1(<module>) Common
22421 1.847 0.000 5.038 0.000 __init__.py:487(__init__) Common
141082/29601 1.764 0.000 6.020 0.000 __init__.py:750(get_nodes_by_type) Metaprogramming
87213 1.747 0.000 3.104 0.000 __init__.py:229(create_token) Common
404555 1.583 0.000 1.583 0.000 :0(append) Common
1218 1.456 0.001 6.448 0.005 debug.py:10(tokenize) Common
150094/302 1.430 0.000 78.122 0.259 debug.py:69(render_node) Common
174654/153514 1.414 0.000 2.079 0.000 :0(getattr) Metaprogramming
9067 1.376 0.000 2.433 0.000 datetime.py:436(__new__) Common
87213 1.151 0.000 4.255 0.000 debug.py:25(create_token) Common
72990 1.051 0.000 1.872 0.000 __init__.py:306(extend_nodelist) Metaprogramming
252765/252152 0.979 0.000 0.988 0.000 :0(len) Common
53152 0.928 0.000 19.773 0.000 __init__.py:533(resolve) Common
58890 0.892 0.000 1.680 0.000 safestring.py:89(mark_safe) Metaprogramming
26274 0.872 0.000 2.788 0.000 html.py:30(escape) Common
95086 0.851 0.000 1.088 0.000 __init__.py:341(next_token) Common
26582 0.826 0.000 3.877 0.000 functional.py:246(wrapper) Metaprogramming
72990 0.819 0.000 2.692 0.000 debug.py:55(extend_nodelist) Common
1 0.816 0.816 5.132 5.132 dev_appserver.py:17(<module>) I/O
198662 0.795 0.000 0.795 0.000 :0(extend) Common
8 0.677 0.085 0.806 0.101 __init__.py:18(<module>) Common
7870/6345 0.675 0.000 9.598 0.002 defaulttags.py:736(do_if) Common
22729 0.658 0.000 0.983 0.000 __init__.py:633(__init__) Common
140829 0.658 0.000 0.658 0.000 :0(replace) Common
83/80 0.646 0.008 5.051 0.063 :0(__import__) Common
8154 0.595 0.000 5.561 0.001 urlresolvers.py:220(reverse) Common
26274 0.588 0.000 22.138 0.001 debug.py:85(render) Metaprogramming
19328 0.584 0.000 1.111 0.000 datastore_types.py:278(id) Common
106543 0.571 0.000 0.571 0.000 :0(startswith) Common
1 0.525 0.525 1.494 1.494 appinfo.py:18(<module>) Common
8154 0.506 0.000 9.256 0.001 defaulttags.py:369(render) Common
87213 0.494 0.000 0.494 0.000 __init__.py:190(__init__) Common
14194 0.488 0.000 0.686 0.000 safestring.py:44(_proxy_method) Common
77732 0.484 0.000 0.484 0.000 :0(split) Common
59192 0.465 0.000 6.663 0.000 __init__.py:672(resolve) Common
59192 0.444 0.000 0.444 0.000 context.py:38(__getitem__) Common
158727 0.436 0.000 0.436 0.000 :0(hasattr) Metaprogramming
13895/10875 0.435 0.000 4.275 0.000 defaulttags.py:238(get_nodes_by_type) Common
88486 0.414 0.000 0.414 0.000 __init__.py:790(render) Common
141683 0.409 0.000 0.409 0.000 :0(pop) Common
1218 0.394 0.000 1.395 0.001 filesystem.py:29(load_template_source) I/O
43904 0.392 0.000 0.392 0.000 :0(span) Common
20536/4832 0.387 0.000 45.305 0.009 defaulttags.py:246(render) Common
44324 0.380 0.000 0.380 0.000 :0(get) Common
42375 0.377 0.000 0.575 0.000 datetime.py:272(_check_int_field) Common
32756 0.374 0.000 0.374 0.000 :0(group) Common
41152 0.336 0.000 0.343 0.000 :0(join) Common
8154 0.329 0.000 7.015 0.001 urlresolvers.py:248(reverse) Common
72539 0.323 0.000 0.323 0.000 :0(abs) Common
3020 0.319 0.000 7.386 0.002 timesince.py:7(timesince) Common
6040 0.314 0.000 0.718 0.000 trans_real.py:266(do_translate) Common
2594 0.310 0.000 0.527 0.000 ntpath.py:398(normpath) Common
1 0.293 0.293 0.519 0.519 loader.py:2(<module>) Common
...

Spam Bayesian classifier

ncalls tottime percall cumtime percall filename:lineno(function) Category
704 0.830 0.001 6.585 0.009 classifier.py:408(_getclues) Common
329494 0.513 0.000 1.410 0.000 tokenizer.py:1551(tokenize_text) Multithreading
240590 0.409 0.000 1.136 0.000 OptionsClass.py:637(get) Common
1407906 0.342 0.000 0.342 0.000 :0(lower) Common
240590 0.329 0.000 0.455 0.000 OptionsClass.py:631(get_option) Common
124454 0.319 0.000 0.796 0.000 tokenizer.py:695(tokenize_word) Multithreading
407264 0.315 0.000 4.676 0.000 tokenizer.py:1255(tokenize) Multithreading
373351 0.294 0.000 2.380 0.000 tokenizer.py:1579(tokenize_body) Multithreading
34617 0.285 0.000 1.978 0.000 tokenizer.py:1263(tokenize_headers) Multithreading
240590 0.195 0.000 1.332 0.000 OptionsClass.py:643(__getitem__) Common
170137 0.175 0.000 1.044 0.000 classifier.py:482(_worddistanceget) Common
735358/735069 0.165 0.000 0.168 0.000 :0(len) Common
481181 0.121 0.000 0.121 0.000 :0(has_key) Common
69749 0.116 0.000 0.116 0.000 :0(search) Common
2222 0.109 0.000 0.290 0.000 _parseaddr.py:316(getaddrspec) Common
3357 0.109 0.000 0.462 0.000 message.py:492(_get_params_preserve) Common
3357 0.107 0.000 0.141 0.000 message.py:62(_parseparam) Common
238973 0.091 0.000 0.091 0.000 :0(append) Common
5643 0.086 0.000 0.170 0.000 tokenizer.py:1043(tokenize) Multithreading
9790 0.086 0.000 0.131 0.000 _parseaddr.py:409(getatom) Common
4235 0.086 0.000 0.361 0.000 tokenizer.py:949(analyze) Common
170137 0.082 0.000 0.116 0.000 classifier.py:491(_wordinfoget) Common
38064 0.081 0.000 0.081 0.000 :0(split) Common
240590 0.080 0.000 0.080 0.000 OptionsClass.py:136(get) Common
1 0.078 0.078 7.550 7.550 launcher.py:1(<module>) Common
10662 0.077 0.000 0.108 0.000 message.py:354(get) Common
4928 0.070 0.000 0.115 0.000 message.py:370(get_all) Common
2255 0.067 0.000 0.067 0.000 :0(findall) Common
3357 0.067 0.000 0.150 0.000 utils.py:260(decode_params) Common
4303 0.063 0.000 0.623 0.000 message.py:535(get_param) Common
2629 0.061 0.000 0.069 0.000 :0(sub) Common
2222 0.054 0.000 0.103 0.000 _parseaddr.py:341(getdomain) Common
291/75 0.053 0.000 0.164 0.002 sre_parse.py:385(_parse) Common
254/208 0.051 0.000 0.266 0.001 feedparser.py:195(_parsegen) Common
...

Spitfire template system

ncalls tottime percall cumtime percall filename:lineno(function) Category
176 15783386832.731 89678334.277 0.018 0.000 sre_compile.py:207(_optimize_charset) Common
22 1468221972.469 66737362.385 0.006 0.000 sre_compile.py:258(_mk_bitmap) Common
52 0.897 0.017 0.897 0.017 {method join of str objects} Common
1 0.045 0.045 26.754 26.754 launcher.py:1(<module>) Common
2 0.006 0.003 0.051 0.026 util.py:1(<module>) Common
200/77 0.006 0.000 0.021 0.000 sre_parse.py:385(_parse) Common
412/77 0.006 0.000 0.029 0.000 sre_compile.py:32(_compile) Common
7146/6932 0.005 0.000 0.006 0.000 {len} Common
38 0.005 0.000 0.005 0.000 scanner.py:11(scan) Common
7 0.005 0.001 0.049 0.007 __init__.py:1(<module>) Common
52 0.004 0.000 0.004 0.000 {method lookup of unicodedata.UCD objects} Common
6 0.004 0.001 0.005 0.001 collections.py:239(namedtuple) Common
588/255 0.004 0.000 0.005 0.000 sre_parse.py:146(getwidth) Common
1669 0.003 0.000 0.007 0.000 sre_parse.py:188(__next) Common
1 0.003 0.003 0.007 0.007 xhtml2ast.py:1(<module>) Common
1 0.002 0.002 0.056 0.056 bm_spitfire.py:3(<module>) Common
1 0.002 0.002 0.002 0.002 programListBenchmarks.py:1(<module>) Common
1610 0.002 0.000 0.003 0.000 sre_parse.py:136(__getitem__) Metaprogramming
1 0.002 0.002 0.040 0.040 inspect.py:2(<module>) Common
1 0.002 0.002 0.057 0.057 subprocess.py:12(<module>) Common
2450 0.002 0.000 0.002 0.000 {isinstance} Metaprogramming
1 0.001 0.001 0.002 0.002 __init__.py:17(<module>) Common
77 0.001 0.000 0.008 0.000 sre_compile.py:361(_compile_info) Common
1 0.001 0.001 0.002 0.002 primitive.py:1(<module>) Common
1398 0.001 0.000 0.008 0.000 sre_parse.py:207(get) Common
1 0.001 0.001 0.052 0.052 msvcrt.py:1(<module>) Common
1 0.001 0.001 0.050 0.050 __init__.py:4(<module>) Common
176 0.001 0.000 0.020 0.000 sre_compile.py:178(_compile_charset) Common
1 0.001 0.001 0.007 0.007 analyzer.py:1(<module>) Common
1 0.001 0.001 26.644 26.644 runSpitfire.py:17(run) Common
605 0.001 0.000 0.001 0.000 sre_parse.py:144(append) Common
1 0.001 0.001 0.041 0.041 structure.py:2(<module>) Common
1 0.001 0.001 0.004 0.004 optimizer.py:1(<module>) Common
1 0.001 0.001 0.002 0.002 template.py:4(<module>) Common
1 0.001 0.001 0.058 0.058 genericRunnerApplicationsUnlandenSwallow.py:1(<module>) Common
133/77 0.001 0.000 0.022 0.000 sre_parse.py:307(_parse_sub) Common
25 0.001 0.000 0.001 0.000 function.py:660(make_fastpath_subclass) Common
77 0.001 0.000 0.061 0.001 sre_compile.py:495(compile) Common
1 0.001 0.001 26.585 26.585 bm_spitfire.py:39(test_spitfire) Common
1 0.001 0.001 0.001 0.001 visitor.py:1(<module>) Common
1 0.001 0.001 26.704 26.704 launcher.py:156(run) Common
1 0.001 0.001 0.001 0.001 util.py:154(__init__) Common
1 0.001 0.001 0.059 0.059 runSpitfire.py:1(<module>) Common
1048 0.001 0.000 0.001 0.000 sre_parse.py:201(match) Common
1 0.001 0.001 0.001 0.001 basics.py:2(<module>) Common
1 0.001 0.001 0.001 0.001 ast.py:1(<module>) Common
818 0.001 0.000 0.001 0.000 sre_parse.py:132(__len__) Common
921 0.001 0.000 0.001 0.000 {min} Common
117 0.001 0.000 0.006 0.000 yappsrt.py:50(token) Common
1 0.001 0.001 0.001 0.001 dis.py:1(<module>) Common
1 0.001 0.001 0.001 0.001 minidom.py:1(<module>) Common
78 0.001 0.000 0.062 0.001 re.py:226(_compile) Common
77 0.001 0.000 0.023 0.000 sre_parse.py:669(parse) Common
30 0.001 0.000 0.002 0.000 function.py:202(__init__) Common
1 0.001 0.001 0.028 0.028 parser.py:3(<module>) Common
412 0.001 0.000 0.001 0.000 sre_parse.py:96(__init__) Common
...

SQLMap

ncalls tottime percall cumtime percall filename:lineno(function) Category
11641 56.239 0.005 56.239 0.005 :0(recv) Multithreading
568 42.726 0.075 81.018 0.143 comparison.py:46(_comparison) Multithreading
25924292/25923443 24.903 0.000 24.903 0.000 :0(len) Common
40327 15.212 0.000 15.212 0.000 :0(search) Common
12934470 13.400 0.000 13.400 0.000 :0(min) Common
770 1.001 0.001 1.001 0.001 :0(sleep) Multithreading
769 0.961 0.001 0.961 0.001 :0(connect) Common
8633 0.399 0.000 0.676 0.000 :0(sub) Common
769 0.276 0.000 75.186 0.098 connect.py:185(getPage) Multithreading
2307/769 0.271 0.000 36.290 0.047 socket.py:336(read) Multithreading
234823 0.265 0.000 0.265 0.000 :0(get) Common
1552 0.234 0.000 13.803 0.009 :0(Parse) Common
1879/1337 0.178 0.000 0.546 0.000 datatype.py:71(__deepcopy__) Common
165731 0.174 0.000 0.249 0.000 datatype.py:37(__getattr__) Common
153516 0.151 0.000 0.249 0.000 pyexpat.c:441(CharacterData) Common
54591 0.126 0.000 0.535 0.000 re.py:226(_compile) Common
50754 0.124 0.000 0.213 0.000 basic.py:258(<lambda>) Common
45371 0.107 0.000 12.906 0.000 html.py:36(startElement) Common
126124 0.107 0.000 0.107 0.000 :0(isinstance) Metaprogramming
46149 0.105 0.000 13.048 0.000 expatreader.py:300(start_element) Common
14157/14153 0.095 0.000 0.157 0.000 common.py:1924(getUnicode) Common
16872/77 0.094 0.000 0.574 0.007 copy.py:145(deepcopy) Metaprogramming
40327 0.093 0.000 15.528 0.000 re.py:139(search) Common
110269 0.087 0.000 0.087 0.000 :0(startswith) Common
769 0.083 0.000 82.555 0.107 connect.py:595(queryPage) Common
32781 0.081 0.000 0.081 0.000 :0(lower) Common
165731 0.075 0.000 0.075 0.000 :0(__getitem__) Common
136301 0.069 0.000 0.069 0.000 :0(group) Common
71713 0.065 0.000 0.065 0.000 :0(append) Common
146603 0.062 0.000 0.062 0.000 handler.py:158(characters) Common
2754 0.058 0.000 0.197 0.000 agent.py:235(cleanupPayload) Common
46149 0.057 0.000 0.077 0.000 expatreader.py:303(end_element) Common
49833 0.056 0.000 13.166 0.000 pyexpat.c:566(StartElement) Common
1068/378 0.054 0.000 0.170 0.000 sre_parse.py:379(_parse) Metaprogramming
3076 0.054 0.000 20.424 0.007 socket.py:406(readline) Multithreading
1841/273 0.053 0.000 0.124 0.000 sre_compile.py:32(_compile) Common
850 0.051 0.000 0.051 0.000 :0(stat) Common
44988 0.051 0.000 0.083 0.000 xmlreader.py:327(get) Common
49833 0.051 0.000 0.153 0.000 pyexpat.c:618(EndElement) Common
64079 0.050 0.000 0.050 0.000 safe2bin.py:47(<genexpr>) Common
...

Volatility forensics framework

ncalls tottime percall cumtime percall filename:lineno(function) Category
490869 1.562 0.000 1.562 0.000 :0(seek) I/O
490862 0.799 0.000 0.799 0.000 :0(read) I/O
439 0.527 0.001 0.745 0.002 intel.py:260(__read_bytes) Common
485396 0.466 0.000 3.675 0.000 intel.py:412(get_pte) Common
46469 0.447 0.000 4.301 0.000 intel.py:476(get_available_pages) Common
489524 0.390 0.000 3.302 0.000 intel.py:462(_read_long_long_phys) Common
490862 0.366 0.000 2.727 0.000 standard.py:96(read) Common
489944 0.279 0.000 0.279 0.000 :0(unpack) Common
491618 0.211 0.000 0.211 0.000 intel.py:140(entry_present) Common
105 0.131 0.001 0.369 0.004 :0(__import__) Common
1154 0.122 0.000 4.422 0.004 standard.py:149(get_available_addresses) Common
6859/96 0.121 0.000 0.221 0.002 copy.py:145(deepcopy) Metaprogramming
602 0.084 0.000 0.169 0.000 obj.py:1189(_convert_members) Metaprogramming
5882/4684 0.051 0.000 0.079 0.000 obj.py:1129(_list_to_type) Metaprogramming
1 0.048 0.048 6.745 6.745 launcher.py:1(<module>) Common
756 0.040 0.000 0.052 0.000 ntpath.py:398(normpath) Common
196 0.040 0.000 0.047 0.000 obj.py:961(metadata) Common
2080 0.033 0.000 0.211 0.000 intel.py:435(vtop) Common
719 0.029 0.000 0.052 0.000 :0(stat) Common
1 0.029 0.029 5.140 5.140 scan.py:81(scan) Common
2369/1115 0.028 0.000 0.122 0.000 copy.py:226(_deepcopy_list) Metaprogramming
6516 0.027 0.000 0.031 0.000 _functools.py:12(__init__) Common
154 0.025 0.000 0.039 0.000 sre_compile.py:207(_optimize_charset) Common
5969 0.023 0.000 0.023 0.000 :0(__setattr__) Metaprogramming
4128 0.023 0.000 0.116 0.000 intel.py:389(get_pde) Common
5221 0.022 0.000 0.030 0.000 copy.py:267(_keep_alive) Metaprogramming
5236 0.021 0.000 0.042 0.000 obj.py:255(__setattr__) Metaprogramming
16149 0.017 0.000 0.017 0.000 :0(append) Common
1 0.017 0.017 0.017 0.017 win7_sp0_x64_vtypes.py:1(<module>) Common
1 0.017 0.017 0.022 0.022 urllib.py:1(<module>) Common
18163/17954 0.016 0.000 0.018 0.000 :0(len) Common
14371 0.015 0.000 0.015 0.000 :0(get) Common
1817 0.014 0.000 0.031 0.000 obj.py:745(__setattr__) Metaprogramming
733 0.014 0.000 0.018 0.000 _structseq.py:70(structseq_new) Common
6821 0.013 0.000 0.014 0.000 :0(isinstance) Metaprogramming
182/60 0.013 0.000 0.217 0.004 copy.py:253(_deepcopy_dict) Metaprogramming
379/33 0.013 0.000 0.070 0.002 sre_compile.py:32(_compile) Common
1620 0.012 0.000 0.015 0.000 sre_parse.py:188(__next) Common
1101/653 0.012 0.000 0.144 0.000 _functools.py:19(__call__) Common
22 0.012 0.001 0.013 0.001 sre_compile.py:258(_mk_bitmap) Common
177/37 0.012 0.000 0.057 0.002 sre_parse.py:385(_parse) Common
14727 0.012 0.000 0.012 0.000 :0(id) Common
1601 0.011 0.000 0.014 0.000 sre_parse.py:136(__getitem__) Metaprogramming
535 0.011 0.000 0.117 0.000 obj.py:711(m) Common
458 0.010 0.000 0.064 0.000 inspect.py:440(getsourcefile) Common
2111 0.010 0.000 0.015 0.000 intel.py:374(get_pdpte) Common
1 0.010 0.010 0.025 0.025 taskmods.py:25(<module>) Common
60 0.009 0.000 0.009 0.000 :0(find) Common
653 0.008 0.000 0.106 0.000 obj.py:189(__init__) Common
2428 0.008 0.000 0.008 0.000 _structseq.py:22(__get__) Common
12246 0.008 0.000 0.008 0.000 :0(callable) Common
1301 0.008 0.000 0.208 0.000 intel.py:239(__read_chunk) Common
3015 0.007 0.000 0.007 0.000 intel.py:156(page_size_flag) Common
1 0.007 0.007 0.014 0.014 windows.py:20(<module>) Common
1 0.007 0.007 0.007 0.007 win7_sp0_x86_vtypes.py:1(<module>) Common
8 0.007 0.001 0.011 0.001 collections.py:239(namedtuple) Common
1976 0.007 0.000 0.007 0.000 intel.py:424(get_phys_addr) Common
1 0.006 0.006 0.006 0.006 win7_sp1_x64_vtypes.py:1(<module>) Common
786 0.006 0.000 0.007 0.000 sre_parse.py:132(__len__) Common
10521 0.006 0.000 0.006 0.000 :0(startswith) Common
1 0.006 0.006 0.006 0.006 vista_sp2_x64_vtypes.py:1(<module>) Common
542/198 0.006 0.000 0.008 0.000 sre_parse.py:146(getwidth) Common
203 0.006 0.000 0.009 0.000 conf.py:384(__getattr__) Metaprogramming
1 0.006 0.006 0.006 0.006 vista_sp1_x64_vtypes.py:1(<module>) Common
1967 0.006 0.000 0.006 0.000 standard.py:113(is_valid_address) Common
1 0.006 0.006 0.006 0.006 win7_sp1_x86_vtypes.py:1(<module>) Common
1 0.006 0.006 0.006 0.006 vista_sp1_x86_vtypes.py:1(<module>) Common
1374 0.006 0.000 0.007 0.000 string.py:220(lower) Common
1 0.006 0.006 0.161 0.161 vol.py:26(<module>) Common
1 0.006 0.006 0.006 0.006 vista_sp0_x64_vtypes.py:1(<module>) Common
1 0.006 0.006 0.006 0.006 vista_sp2_x86_vtypes.py:1(<module>) Common
2111 0.005 0.000 0.005 0.000 intel.py:365(pdpte_index) Common
1323 0.005 0.000 0.018 0.000 sre_parse.py:207(get) Common
2226 0.005 0.000 0.005 0.000 :0(min) Common
1 0.005 0.005 0.005 0.005 vista_sp0_x86_vtypes.py:1(<module>) Common
1 0.005 0.005 0.005 0.005 zipfile.py:418(_GenerateCRCTable) Common
248/200 0.005 0.000 0.137 0.001 inspect.py:472(getmodule) Common
1160/287 0.005 0.000 0.005 0.000 registry.py:124(_get_subclasses) Common
1 0.005 0.005 0.005 0.005 win2003_sp2_x64_vtypes.py:1(<module>) Common
...

Web2Py web framework

ncalls tottime percall cumtime percall filename:lineno(function) Category
249 1.004 0.004 1.004 0.004 {method 'acquire' of thread.lock objects Multithreading
218/43 0.025 0.000 0.033 0.001 {__import__} Common
1 0.025 0.025 0.042 0.042 dal.py:120(<module>) Multithreading, Metaprogramming
2 0.023 0.012 0.023 0.012 {time.sleep} Multithreading
975/237 0.013 0.000 0.034 0.000 sre_parse.py:379(_parse) Metaprogramming
12477 0.008 0.000 0.009 0.000 sre_parse.py:182(__next) Common
1612/211 0.008 0.000 0.024 0.000 sre_compile.py:32(_compile) Common
519 0.007 0.000 0.013 0.000 sre_compile.py:207(_optimize_charset) Common
1 0.007 0.007 0.024 0.024 portalocker.py:41(<module>) Multithreading
1 0.007 0.007 0.199 0.199 __init__.py:11(<module>) Common
2154/798 0.005 0.000 0.006 0.000 sre_parse.py:140(getwidth) Common
1 0.005 0.005 0.015 0.015 xmlrpclib.py:137(<module>) Common
1 0.004 0.004 0.043 0.043 html.py:8(<module>) Common
1 0.004 0.004 0.020 0.020 SimpleXMLRPCServer.py:97(<module>) Common
3 0.004 0.001 0.007 0.002 __init__.py:24(<module>) Common
1 0.003 0.003 0.003 0.003 shutil.py:5(<module>) Common
10442 0.003 0.000 0.011 0.000 sre_parse.py:201(get) Common
7181 0.003 0.000 0.004 0.000 sre_parse.py:130(__getitem__) Metaprogramming
1 0.003 0.003 0.007 0.007 urllib.py:23(<module>) Common
2 0.003 0.001 0.003 0.001 platform.py:534(_win32_getvalue) Common
1 0.003 0.003 0.130 0.130 globals.py:15(<module>) Common
120 0.003 0.000 0.003 0.000 sre_compile.py:258(_mk_bitmap) Common
1 0.003 0.003 0.003 0.003 socket.py:45(<module>) Common
1 0.003 0.003 0.009 0.009 fileutils.py:8(<module>) Common
3 0.002 0.001 0.002 0.001 {_socket.gethostname} Common
1 0.002 0.002 0.006 0.006 tarfile.py:31(<module>) Common
1 0.002 0.002 1.281 1.281 launcher.py:1(<module>) Common
1 0.002 0.002 0.015 0.015 validators.py:10(<module>) Common
1 0.002 0.002 0.005 0.005 tempfile.py:18(<module>) Common
35641/34929 0.002 0.000 0.002 0.000 {len} Common
25580 0.002 0.000 0.002 0.000 {method append of list objects Common
1 0.002 0.002 0.002 0.002 __init__.py:4(<module>) Common
1 0.002 0.002 0.003 0.003 random.py:40(<module>) Common
635/212 0.002 0.000 0.035 0.000 sre_parse.py:301(_parse_sub) Common
2 0.002 0.001 0.003 0.001 sre_compile.py:301(_optimize_unicode) Common
1 0.002 0.002 0.002 0.002 types.py:30(<module>) Common
1 0.002 0.002 0.007 0.007 mimetools.py:1(<module>) Common
1 0.002 0.002 0.005 0.005 compileapp.py:13(<module>) Common
1 0.002 0.002 0.021 0.021 rewrite.py:17(<module>) Common
1 0.002 0.002 0.004 0.004 platform.py:553(win32_ver) Common
519 0.002 0.000 0.015 0.000 sre_compile.py:178(_compile_charset) Common
1 0.002 0.002 0.006 0.006 utils.py:10(<module>) Common
8371 0.002 0.000 0.002 0.000 {isinstance} Metaprogramming
...