tidb-dev-guide icon indicating copy to clipboard operation
tidb-dev-guide copied to clipboard

Write down how to do benchmark for TiDB

Open tisonkun opened this issue 2 years ago • 4 comments

Reference

  • https://github.com/pingcap/tidb/pull/27640#issuecomment-907978311

tisonkun avatar Aug 30 '21 13:08 tisonkun

@tiancaiamao @dbsid I'll appreciate if you can give any suggestion on this topic.

tisonkun avatar Aug 30 '21 13:08 tisonkun

Google is our friend ... why repeat ourselves? (ノ゜∇゜)ノ

https://dave.cheney.net/2013/06/30/how-to-write-benchmarks-in-go https://hackernoon.com/how-to-write-benchmarks-in-golang-like-an-expert-0w1834gs https://www.cloudbees.com/blog/real-life-go-benchmarking https://www.instana.com/blog/practical-golang-benchmarks/ https://medium.com/justforfunc/analyzing-the-performance-of-go-functions-with-benchmarks-60b8162e61c6 https://marcofranssen.nl/test-and-benchmark-your-code-in-go

tiancaiamao avatar Aug 31 '21 06:08 tiancaiamao

@tiancaiamao thanks for your information. I'll try to integrate it.

It seems all of go bench. I think we'd like to populate TPCC, sysbench, etc. standard benchmark also 😄

tisonkun avatar Sep 02 '21 03:09 tisonkun

I think we'd like to populate TPCC, sysbench, etc.

Sure, we have tutorial guide for TPCC https://docs.pingcap.com/tidb/stable/benchmark-tidb-using-tpcc Sysbench https://docs.pingcap.com/tidb/stable/benchmark-tidb-using-sysbench YCSB https://en.pingcap.com/blog/building-running-and-benchmarking-tikv-and-tidb

tiancaiamao avatar Sep 06 '21 13:09 tiancaiamao