Skip to content

Instantly share code, notes, and snippets.

@kevinbin
Created March 31, 2013 03:39
Show Gist options
  • Save kevinbin/5279451 to your computer and use it in GitHub Desktop.
Save kevinbin/5279451 to your computer and use it in GitHub Desktop.
sysbench mysql benchmark result format
awk 'BEGIN {printf "%s%5s%15s%15s\n", "Connect","TPS","QPS","RT"}; {if ($0 ~ /threads:/){printf "%s\t", $4} ;if ($0 ~/transactions:/){sub(/\(/,"");printf "%s\t", $3};if($0~/requests:/){sub(/\(/,"");printf "%s\t",$4};if ($0~/avg:/){print $2}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment