Skip to content

Instantly share code, notes, and snippets.

@dr2chase
Created May 26, 2017 15:20
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 dr2chase/7eb09702e98809e67d2bc88feeb06433 to your computer and use it in GitHub Desktop.
Save dr2chase/7eb09702e98809e67d2bc88feeb06433 to your computer and use it in GitHub Desktop.
#!/bin/bash
# filter output of multiple benchmarking experiments into a spreadsheet-friendly form
egrep '^[[a-zA-Z/]' "$1" | egrep -v "B/s|old speed" | \
sed -e '1,$s/[^0-9]*s ±[ 0-9]*%//g' | sed -e '1,$s/(p.*)//g' | \
sed -e '1,$s?[-_.a-z/]*git-codereview: changed to branch ?,?g' | \
sed -e '1,$s/ * /,/g' | \
sed -e '1,$s/,~//g' | \
sed -e '1,$s/,[-+][0-9.]*%//g' | \
sed -E -e '1,$s/([0-9])[µmn]?s/\1/g' | \
sed -E -e '1,$s/(,delta)?[.,]?$//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment