gnuplot -e "set terminal png size 3000,1000 ; set size ratio 0.9 ; set output "$output_image" ; set xtic rotate by 90 ; set xdata time ; set grid;set timefmt "%Y-%m-%d_%H:%M:%S" ; plot "probe.log" using 1:2 with line title "Commit", "probe.log" using 1:3 with line title "Delete", "probe.log" using 1:4 with line title "insert","probe.log" using 1:5 with line title "rollback","probe.log" using 1:6 with line title "select","probe.log" using 1:7 with line title "update" ; " done; 运行脚本,并且使用TPCC-MySQL基准测试工具开始测试(加一些流量容易看出效果)