On Tue, Apr 15, 2014 at 5:40 PM, Guido van Rossum <gu...@python.org> wrote:
> Are you going to post your code (or a link to it)? > I basically wrote a function that uses gettimeofday() and just calculates the delta between the calls. Greg Smith verified that I wasn't doing anything stupid. =) Anyway, the diff can be found at https://gist.github.com/brettcannon/9cd3960dd067bb7a45bd . -Brett > > > On Tue, Apr 15, 2014 at 2:26 PM, Brett Cannon <bcan...@gmail.com> wrote: > >> To finish my timing work I decided to see where Py_InitializeEx_Private() >> spends its time. The following is a breakdown measured in microseconds >> running using -E: >> >> INIT: >> setlocale: 11 >> envvar: 2 >> random init: 2 >> interp creation: 15 >> thread creation: 6 >> GIL: 10 >> _Py_ReadyTypes(): 930 >> more types: 44 >> builtins: 141 >> exceptions: 287 >> sys: 258 >> _PyImport_Init: 15 >> import hooks: 4 >> _PyWarnings_Init(): 15 >> ENTERING import_init(): >> PyImport_ImportFrozenModule(_frozen_importlib): 1186 >> interp->importlib: 6 >> PyInit_imp(): 15 >> _imp: 3 >> importlib._install(): 876 >> _PyImportZip_Init(): 130 >> _PyFaulthandler_Init(): 13 >> time: 3 >> ENTERING initfsencoding(): >> codec lookup: 2179 >> signals: 120 >> tracemalloc: 7 >> __main__: 13 >> initstdio(): 1568 >> warnings module: 4 >> initsite(): 9552 >> >> _______________________________________________ >> Python-Dev mailing list >> Python-Dev@python.org >> https://mail.python.org/mailman/listinfo/python-dev >> Unsubscribe: >> https://mail.python.org/mailman/options/python-dev/guido%40python.org >> >> > > > -- > --Guido van Rossum (python.org/~guido) >
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com