go_db_bench icon indicating copy to clipboard operation
go_db_bench copied to clipboard

Clearer test result

Open frederikhors opened this issue 5 years ago • 4 comments

Is there a way (maybe graphic) to make the result clearer and more evident?

Thanks for your amazing work.

frederikhors avatar Apr 13 '20 15:04 frederikhors

I'm using the standard Go benchmarking tools. It be great if there was an automated way to make the output more clear, but personally I don't know of any.

Visualization could be done manually, but that could take an extensive amount of time.

jackc avatar Apr 16 '20 13:04 jackc

Ok, but maybe we can:

  • add a new blank line after each group
  • change the name using more clearly the different tool at the end (e.g.: ...-PGX, ...-PG)
  • always use the same order

frederikhors avatar Apr 16 '20 14:04 frederikhors

And maybe use something like this: http://mindchunk.blogspot.com/2013/05/visualizing-go-benchmarks-with-benchviz.html

frederikhors avatar Apr 16 '20 14:04 frederikhors

add a new blank line after each group

I'm not actually sure how to do this with testing package -- at least without putting print statements in the tests ☹️

change the name using more clearly the different tool at the end (e.g.: ...-PGX, ...-PG)

It's consistently at the front now. I find that easier to scan than at the end.

As far as I can tell benchviz uses benchcmp which compares multiple runs of the same benchmarks, not benchmarks within the same run.

jackc avatar Apr 18 '20 23:04 jackc