Skip to content

Instantly share code, notes, and snippets.

@lucapette
Created October 15, 2022 15:41
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 lucapette/526147688a1b4f3c0e77f5294429cfd7 to your computer and use it in GitHub Desktop.
Save lucapette/526147688a1b4f3c0e77f5294429cfd7 to your computer and use it in GitHub Desktop.
strace run for fakedata

before:

/ # strace -e write -c ./fakedata -l 100000 noun > /dev/null
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00    0.333190          16     19785           write
------ ----------- ----------- --------- --------- ----------------
100.00    0.333190          16     19785           total

after:

/ # strace -e write -c ./fakedata -l 100000 noun > /dev/null
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
  0.00    0.000000           0       227           write
------ ----------- ----------- --------- --------- ----------------
100.00    0.000000           0       227           total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment