Skip to content

Instantly share code, notes, and snippets.

@rexissimus
Created February 18, 2015 15:07
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 rexissimus/16b74693545b5e7c1035 to your computer and use it in GitHub Desktop.
Save rexissimus/16b74693545b5e7c1035 to your computer and use it in GitHub Desktop.
compare old and new vtk package loading time
NEW:
6222671 function calls (6195508 primitive calls) in 10.524 seconds
Ordered by: internal time
List reduced from 428 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
119/4 1.326 0.011 4.281 1.070 {__import__}
16347 0.717 0.000 1.946 0.000 specs.py:299(internal_from_xml)
197194 0.526 0.000 0.526 0.000 collections.py:54(__setitem__)
32694 0.523 0.000 0.769 0.000 specs.py:259(set_defaults)
36859 0.425 0.000 0.425 0.000 {compile}
16359 0.319 0.000 1.768 0.000 port_spec.py:377(get_items_from_sigstring)
1121244 0.318 0.000 0.406 0.000 {isinstance}
1 0.265 0.265 0.265 0.265 {built-in method _parse}
16361 0.248 0.000 2.703 0.000 module_registry.py:1400(create_port_spec)
23805 0.245 0.000 0.245 0.000 port_spec.py:283(_set_attrs)
16361 0.233 0.000 0.904 0.000 _abcoll.py:526(update)
16361 0.221 0.000 2.174 0.000 port_spec.py:69(__init__)
50584/25281 0.180 0.000 0.262 0.000 ast.py:52(_convert)
16361 0.174 0.000 0.390 0.000 port_spec.py:278(_resize_attrs)
1806 0.165 0.000 0.738 0.000 init.py:88(gen_module)
16347 0.161 0.000 0.478 0.000 specs.py:363(get_port_type)
1282949/1282947 0.158 0.000 0.158 0.000 {len}
64013 0.145 0.000 0.186 0.000 {method 'extend' of 'list' objects}
16361 0.143 0.000 1.100 0.000 collections.py:38(__init__)
41975 0.142 0.000 0.142 0.000 id_scope.py:58(getNewId)
OLD:
4434224 function calls (4401242 primitive calls) in 24.692 seconds
Ordered by: internal time
List reduced from 4952 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
1806 7.945 0.004 7.947 0.004 init.py:1084(is_abstract)
540/372 2.127 0.004 2.628 0.007 {__import__}
2057/1830 1.235 0.001 1.236 0.001 vtk_parser.py:530(_get_instance)
1807 1.098 0.001 8.092 0.004 vtk_parser.py:345(_organize_methods)
17353 0.653 0.000 1.263 0.000 init.py:159(get_method_signature)
21728 0.626 0.000 2.107 0.000 port_spec.py:328(get_items_from_entries)
21735 0.340 0.000 3.265 0.000 module_registry.py:1398(create_port_spec)
21735 0.328 0.000 2.711 0.000 port_spec.py:69(__init__)
27094 0.301 0.000 0.301 0.000 port_spec.py:283(_set_attrs)
36624 0.287 0.000 0.288 0.000 {hasattr}
21735 0.217 0.000 0.483 0.000 port_spec.py:278(_resize_attrs)
50649 0.201 0.000 0.201 0.000 id_scope.py:58(getNewId)
88022 0.180 0.000 0.180 0.000 module_registry.py:739(get_descriptor_by_name)
75967 0.179 0.000 0.228 0.000 {method 'extend' of 'list' objects}
23555 0.175 0.000 0.175 0.000 application.py:388(send_notification)
1 0.165 0.165 0.165 0.165 {built-in method GetComputeGradients}
27094 0.163 0.000 0.454 0.000 port_spec_item.py:61(__init__)
1807 0.162 0.000 0.513 0.000 init.py:398(addAlgorithmPorts)
295142 0.146 0.000 0.146 0.000 {isinstance}
21735 0.143 0.000 0.955 0.000 module_registry.py:1491(add_port_spec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment