-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Description
$ time echo q | python /.../thefuck/f qqq
qrq [enter/↑/↓/ctrl+c]
...
real 0m0.513s
user 0m0.390s
sys 0m0.110s
# echo 1 > /proc/sys/vm/drop_caches
$ time echo q | python /mnt/src/git/thefuck/f qqq
qrq [enter/↑/↓/ctrl+c]
...
real 0m5.646s
user 0m0.490s
sys 0m0.160s
And it is rarely actually in cache and I need it. It's HDD, not SSD.
# echo 1 > /proc/sys/vm/drop_caches
$ time echo q | strace -cw python /mnt/src/git/thefuck/f qqq
qrq [enter/↑/↓/ctrl+c]...
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
80.89 3.777269 273 13845 read
7.53 0.351812 2814 125 getdents
5.47 0.255403 23 10895 679 stat
2.14 0.099991 7 15236 fstat
1.94 0.090694 6 14036 8 lseek
0.71 0.033002 9 3674 2254 open
0.52 0.024497 24497 1 execve
...
------ ----------- ----------- --------- --------- ----------------
100.00 4.669910 61776 3435 total
real 0m5.945s
user 0m0.740s
sys 0m0.950s
Version 60497b9
Metadata
Metadata
Assignees
Labels
No labels