Created
August 18, 2011 18:47
-
-
Save markcaudill/1154814 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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