Skip to content

Instantly share code, notes, and snippets.

@cocodrips
Created April 23, 2019 10:48
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 cocodrips/7d269ec470004f228d4c6cb6c9d709f4 to your computer and use it in GitHub Desktop.
Save cocodrips/7d269ec470004f228d4c6cb6c9d709f4 to your computer and use it in GitHub Desktop.
test -j option
work: w1 w2 w3
w1:
sleep 5
w2:
sleep 6
w3:
sleep 7
@cocodrips
Copy link
Author

$ time make work                                                                                                                                                                                                                               
sleep 5
sleep 6
sleep 7
make work  0.01s user 0.01s system 0% cpu 18.067 total

@cocodrips
Copy link
Author

cocodrips commented Apr 23, 2019

$ time make -j3 work                                                                                                                                                                                                                           
sleep 5
sleep 6
sleep 7
make -j3 work  0.01s user 0.01s system 0% cpu 7.035 total

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment