Skip to content

Instantly share code, notes, and snippets.

@acobaugh
Created June 15, 2017 14:54
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 acobaugh/6988dbcdf179d5e8e86b9674c28f4c13 to your computer and use it in GitHub Desktop.
Save acobaugh/6988dbcdf179d5e8e86b9674c28f4c13 to your computer and use it in GitHub Desktop.
NSS_SDB_USE_CACHE=yes demonstration
$ strace -fc -e trace=access curl 'https://www.google.com' > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11576 0 11576 0 0 36381 0 --:--:-- --:--:-- --:--:-- 161k
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00 0.000133 0 1506 1503 access
------ ----------- ----------- --------- --------- ----------------
100.00 0.000133 1506 1503 total
$ NSS_SDB_USE_CACHE=yes strace -fc -e trace=access curl 'https://www.google.com' > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10282 0 10282 0 0 47731 0 --:--:-- --:--:-- --:--:-- 141k
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
0.00 0.000000 0 24 21 access
------ ----------- ----------- --------- --------- ----------------
100.00 0.000000 24 21 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment