Skip to content

Instantly share code, notes, and snippets.

@runejuhl
Created April 5, 2013 09:22
Show Gist options
  • Save runejuhl/5317920 to your computer and use it in GitHub Desktop.
Save runejuhl/5317920 to your computer and use it in GitHub Desktop.
Timer testing for Buenos
#!/usr/bin/env bash
for i in `seq 1 10`; do make > /dev/null && yams buenos initprog=[disk]sleep | tail -n 3 | grep -v kHz| grep --color=never -oE '[0-9]+.[0-9]+' | python -c "import sys
lines = [x.strip() for x in sys.stdin.readlines()]
print str(float(lines[0])/float(lines[1])) + ' seconds'"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment