Skip to content

Instantly share code, notes, and snippets.

@markcaudill
Created August 18, 2011 18:47
Show Gist options
  • Save markcaudill/1154814 to your computer and use it in GitHub Desktop.
Save markcaudill/1154814 to your computer and use it in GitHub Desktop.
for i in `seq 0 32`; do echo $i Processes; START=`date +%s.%N`; seq 2 10000 | xargs -n1 -P$i python is_prime.py >/dev/null; END=`date +%s.%N`; echo $(echo "scale=9; $END - $START" | bc) seconds; echo; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment