Skip to content

Instantly share code, notes, and snippets.

@kaplun
Created May 13, 2016 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaplun/42d593e74f8b0821c6a3a754cdcfa6ae to your computer and use it in GitHub Desktop.
Save kaplun/42d593e74f8b0821c6a3a754cdcfa6ae to your computer and use it in GitHub Desktop.
%prun of dojson-1.0.1
1765648 function calls (1600321 primitive calls) in 2.545 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
32 1.210 0.038 1.450 0.045 bd1xx.py:79(authors)
117066 0.204 0.000 0.204 0.000 collections.py:71(__setitem__)
100 0.182 0.002 0.739 0.007 utils.py:241(create_record)
11368 0.159 0.000 0.481 0.000 utils.py:29(__new__)
164760/118 0.127 0.000 0.204 0.002 utils.py:97(strip_empty_values)
416136 0.101 0.000 0.101 0.000 {isinstance}
133520 0.080 0.000 0.141 0.000 utils.py:142(get)
7523 0.078 0.000 0.239 0.000 bd1xx.py:31(_author_get_value)
135390 0.058 0.000 0.063 0.000 utils.py:149(__getitem__)
11368 0.042 0.000 0.075 0.000 collections.py:50(__init__)
86097 0.026 0.000 0.026 0.000 {method 'get' of 'lxml.etree._Attrib' objects}
1 0.024 0.024 2.545 2.545 <string>:1(<module>)
221515 0.021 0.000 0.021 0.000 {method 'append' of 'list' objects}
11268 0.021 0.000 0.021 0.000 {method 'iter' of 'lxml.etree._Element' objects}
3467 0.020 0.000 0.020 0.000 {method 'match' of '_sre.SRE_Pattern' objects}
11368 0.014 0.000 0.016 0.000 _abcoll.py:548(update)
1130 0.013 0.000 0.035 0.000 bd90x99x.py:38(get_value)
252 0.011 0.000 0.011 0.000 {_codecs.utf_8_decode}
7523 0.010 0.000 0.010 0.000 utils.py:86(create_profile_url)
27464 0.009 0.000 0.015 0.000 utils.py:71(force_list)
42207 0.008 0.000 0.008 0.000 {method 'items' of 'dict' objects}
108257/108252 0.008 0.000 0.008 0.000 {len}
11368 0.008 0.000 0.015 0.000 abc.py:148(__subclasscheck__)
16655 0.007 0.000 0.027 0.000 utils.py:147(get_record_ref)
11369 0.007 0.000 0.007 0.000 _weakrefset.py:70(__contains__)
1766 0.007 0.000 0.008 0.000 utils.py:163(__iter__)
7574 0.007 0.000 0.008 0.000 utils.py:115(remove_duplicates_from_list)
64340 0.007 0.000 0.007 0.000 {method 'extend' of 'list' objects}
15007 0.006 0.000 0.006 0.000 {method 'format' of 'str' objects}
22536 0.005 0.000 0.005 0.000 {method 'replace' of 'str' objects}
100 0.004 0.000 1.604 0.016 overdo.py:97(do)
1463 0.004 0.000 0.021 0.000 utils.py:38(wrapper)
3626 0.003 0.000 0.005 0.000 local.py:160(top)
11368 0.003 0.000 0.003 0.000 {built-in method __new__ of type object at 0x8fc7a0}
3626 0.003 0.000 0.012 0.000 local.py:296(_get_current_object)
1654 0.002 0.000 0.021 0.000 overdo.py:55(query)
3626 0.002 0.000 0.007 0.000 globals.py:48(_find_app)
433 0.002 0.000 0.005 0.000 processors.py:57(_collection_in_record)
3626 0.002 0.000 0.002 0.000 local.py:68(__getattr__)
323 0.002 0.000 0.004 0.000 bd1xx.py:218(positions)
3626 0.002 0.000 0.002 0.000 {hasattr}
3043 0.002 0.000 0.002 0.000 sre_parse.py:193(__next)
227/114 0.002 0.000 0.006 0.000 sre_parse.py:395(_parse)
1817 0.002 0.000 0.011 0.000 re.py:230(_compile)
708 0.002 0.000 0.022 0.000 utils.py:51(wrapper)
11368 0.001 0.000 0.001 0.000 utils.py:87(__init__)
271 0.001 0.000 0.004 0.000 bd84188x.py:30(urls)
5225 0.001 0.000 0.001 0.000 utils.py:41(<genexpr>)
1813 0.001 0.000 0.004 0.000 re.py:138(match)
1813 0.001 0.000 0.007 0.000 local.py:340(__getattr__)
1766 0.001 0.000 0.012 0.000 utils.py:220(iteritems)
232/5 0.001 0.000 0.002 0.000 sre_compile.py:64(_compile)
104 0.001 0.000 0.010 0.000 collections.py:125(items)
1813 0.001 0.000 0.008 0.000 local.py:322(__bool__)
175 0.001 0.000 0.002 0.000 bd1xx.py:393(experiments)
290 0.001 0.000 0.002 0.000 utils.py:130(remove_duplicates_from_list_of_dicts)
3337 0.001 0.000 0.001 0.000 {getattr}
200 0.001 0.000 0.001 0.000 {method 'iter' of 'lxml.etree._ElementTree' objects}
100 0.001 0.000 0.004 0.000 base.py:206(collections)
2477 0.001 0.000 0.002 0.000 sre_parse.py:212(get)
272 0.001 0.000 0.002 0.000 base.py:217(get_value)
1563 0.001 0.000 0.001 0.000 six.py:598(iteritems)
18 0.001 0.000 0.070 0.004 bd90x99x.py:33(references)
3455 0.000 0.000 0.000 0.000 {method 'get' of 'dict' objects}
164 0.000 0.000 0.001 0.000 bd6xx.py:132(get_value)
233/6 0.000 0.000 0.001 0.000 sre_parse.py:151(getwidth)
100 0.000 0.000 1.783 0.018 tasks.py:364(create_record)
69 0.000 0.000 0.001 0.000 bd1xx.py:60(name)
3626 0.000 0.000 0.000 0.000 {thread.get_ident}
104 0.000 0.000 0.000 0.000 collections.py:458(__init__)
113 0.000 0.000 0.001 0.000 sre_parse.py:227(isname)
69 0.000 0.000 0.001 0.000 bd1xx.py:294(field_categories)
118/5 0.000 0.000 0.006 0.001 sre_parse.py:317(_parse_sub)
989 0.000 0.000 0.000 0.000 sre_parse.py:141(__getitem__)
916 0.000 0.000 0.001 0.000 sre_parse.py:206(match)
100 0.000 0.000 1.604 0.016 schema.py:31(do)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment