Message302906
I don't have any good idea for it.
I usually run `python -X importtime -c 'import functools'` several times to ensure pyc files are created and it is cached by OS.
On Linux, `strace -c` and `time` command can be used.
But I don't know cross platform way to do it.
$ strace -c python -c 'import asyncio'
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
0.00 0.000000 0 244 read
0.00 0.000000 0 160 2 open
0.00 0.000000 0 161 close
0.00 0.000000 0 527 46 stat
0.00 0.000000 0 266 fstat
0.00 0.000000 0 16 lstat
0.00 0.000000 0 114 6 lseek
0.00 0.000000 0 109 mmap
$ /usr/bin/time python -c 'import asyncio'
0.12user 0.00system 0:00.13elapsed 98%CPU (0avgtext+0avgdata 17004maxresident)k
0inputs+0outputs (0major+2613minor)pagefaults 0swaps |
|
Date |
User |
Action |
Args |
2017-09-25 02:23:02 | methane | set | recipients:
+ methane, gvanrossum, brett.cannon, rhettinger, serhiy.storchaka |
2017-09-25 02:23:02 | methane | set | messageid: <1506306182.84.0.0810571758592.issue31415@psf.upfronthosting.co.za> |
2017-09-25 02:23:02 | methane | link | issue31415 messages |
2017-09-25 02:23:01 | methane | create | |
|