Using the /tmp/gnupg{1,2} from
http://lists.gnupg.org/pipermail/gnupg-devel/2015-February/029541.html:
$ strace -co list-key1 gpg --homedir /tmp/gnupg1 --list-key 0x39278DA8109E6244
/dev/null
$ strace -co list-sigs1 gpg --homedir /tmp/gnupg1 --list-sigs
0x39278DA8109E6244 >/dev/null
$ strace -co list-key2 gpg2 --homedir /tmp/gnupg2 --list-key
0x39278DA8109E6244 >/dev/null
$ strace -co list-sigs2 gpg2 --homedir /tmp/gnupg2 --list-sigs
0x39278DA8109E6244 >/dev/null
$ strace -co list-key2\' gpg2 --homedir /tmp/gnupg1 --list-key
0x39278DA8109E6244 >/dev/null
$ strace -co list-sigs2\' gpg2 --homedir /tmp/gnupg1 --list-sigs
0x39278DA8109E6244 >/dev/null
$ head -5 list-*
> list-key1 <
% time seconds usecs/call calls errors syscall
52.40 0.001047 0 9753 read
18.12 0.000362 0 3264 getrusage
11.66 0.000233 0 3264 clock_gettime
> list-key2 <
% time seconds usecs/call calls errors syscall
97.99 0.015240 8 1986 read
1.76 0.000273 9 31 munmap 0.25 0.000039 20 2 prlimit64
> list-key2' <
% time seconds usecs/call calls errors syscall
95.36 0.000863 0 9756 read
4.64 0.000042 6 7 munmap 0.00 0.000000 0 1 write
> list-sigs1 <
% time seconds usecs/call calls errors syscall
53.32 0.131142 0 1077208 read
12.80 0.031481 0 316730 gettimeofday
11.42 0.028100 0 316730 getrusage
> list-sigs2 <
% time seconds usecs/call calls errors syscall
99.35 3.614892 4 924097 read
0.61 0.022344 6 3621 munmap 0.02 0.000644 0 3651 mmap2
> list-sigs2' <
% time seconds usecs/call calls errors syscall
99.60 0.109905 0 1077211 read
0.29 0.000316 0 6262 time 0.07 0.000078 10 8 munmap
So oddly enough gpg doesn't do more reads on a keybox, but these reads tend to
be much slower.