Skip to content

Instantly share code, notes, and snippets.

@mahmoud
Created January 25, 2012 07:12
Show Gist options
  • Save mahmoud/1675175 to your computer and use it in GitHub Desktop.
Save mahmoud/1675175 to your computer and use it in GitHub Desktop.
PythonDoesBlog profiler output
1245683 function calls (1214448 primitive calls) in 6.210 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
70411 0.314 0.000 1.316 0.000 re.py:228(_compile)
78966 0.222 0.000 0.222 0.000 {method 'match' of '_sre.SRE_Pattern' objects}
22563 0.203 0.000 0.375 0.000 lexer.py:64(match_reg)
10233 0.186 0.000 1.007 0.000 pygen.py:55(writeline)
19780 0.169 0.000 0.541 0.000 statemachine.py:694(make_transition)
96141/94627 0.167 0.000 0.173 0.000 {len}
81023 0.160 0.000 0.160 0.000 {method 'get' of 'dict' objects}
27394 0.154 0.000 0.436 0.000 re.py:134(match)
2168 0.147 0.000 0.147 0.000 {compile}
50759/50705 0.122 0.000 0.123 0.000 {getattr}
3450 0.122 0.000 0.697 0.000 statemachine.py:727(make_transitions)
18745 0.118 0.000 0.179 0.000 sre_parse.py:182(__next)
68142 0.118 0.000 0.118 0.000 {method 'append' of 'list' objects}
50007 0.106 0.000 0.109 0.000 {isinstance}
1321/301 0.105 0.000 0.472 0.002 sre_parse.py:379(_parse)
22406 0.098 0.000 0.510 0.000 lexer.py:50(match)
30224 0.080 0.000 0.080 0.000 {hasattr}
11978/4846 0.079 0.000 0.792 0.000 parsetree.py:28(accept_visitor)
2134/282 0.073 0.000 0.286 0.001 sre_compile.py:32(_compile)
4672/1902 0.066 0.000 0.231 0.000 _ast_util.py:281(generic_visit)
2016 0.065 0.000 0.116 0.000 optparse.py:609(_set_attrs)
17435 0.065 0.000 0.984 0.000 re.py:188(compile)
2258 0.065 0.000 0.130 0.000 lexer.py:485(get_tokens_unprocessed)
16502 0.063 0.000 0.220 0.000 sre_parse.py:201(get)
2663 0.060 0.000 0.550 0.000 lexer.py:120(append_node)
10122 0.058 0.000 0.189 0.000 re.py:144(sub)
31126 0.057 0.000 0.057 0.000 {setattr}
9926 0.056 0.000 0.152 0.000 re.py:139(search)
10366 0.056 0.000 0.056 0.000 {method 'sub' of '_sre.SRE_Pattern' objects}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment