use table output for better user experience#130
Conversation
|
Beside this approach with |
|
cool, maybe it is better to provide an output format flag, like table or origin raw message? so we can further support JSON, etc. Another thing maybe we already used some scripts to parse the output results in our CI, so here we need to ensure the compatibility. |
|
maybe we can also support this in https://github.com/pingcap/go-ycsb @sillydong can you have a try later? |
|
Seems like they are similar tools. If this approach has no problem, I will make it more formal and update this PR. |
I will try adding a flag
Could you share more detail about the CI? I didn't find any thing for that, only a test case in |
Fine, but IMO I prefer plain instead of plaintext :-) For CI, means PingCAP's internal CI or bench system, has not been public. |
Inside PingCap, we've scripts to interpret the go-tpc result based on the current output format, please make the current format as the default for compatibility. |
|
OK, the value would be For CI part, you may add cases for new formats after this. |
|
any update? @sillydong |
|
not yet, will update tonight |
aab2079 to
ba7c642
Compare
ea81139 to
d31d20a
Compare
|
updated the go.mod |
|
thanks @sillydong can you do the same thing for go-ycsb? |
|
working on learning the detail of go-ycsb, may take some time |




Hi all, I'm working on this PR to give a try for outputting the result as table style. Originally, the output is a line and not aligned. With table style output, we can get better user experience and it can be much more convenient to copy values.
The output would like this:

in comparison, the original output is like this:

This is a simple try and I have not written it in a better way. I would first like to get some feedback on this approach and later I can make it better.
Any feedback is welcomed.