Skip to content

Instantly share code, notes, and snippets.

@yitsushi
Created April 11, 2011 19:59
Show Gist options
  • Save yitsushi/914202 to your computer and use it in GitHub Desktop.
Save yitsushi/914202 to your computer and use it in GitHub Desktop.
# ([ 3, 2, 1, 3, 1, 2, 3 ] * (1000/7)).each { |s| (($x||=0) > 997) ? break : $y = ($y||=0) + ( $x += s ) }
([ 3, 2, 1, 3, 1, 2, 3 ] * (1000/14)).each { |s| (($x||=0) > 997) ? break : $y = ($y||=0) + ( $x += s ) }
for f in *.rb; do
(time (for i in `seq 1000`; do ruby $f; done)) 2>&1| sed -e "s/.*)/$f:/"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment