pingcap / tidb-dev-guide

A comprehensive development guide to help you be more and more familiar with the TiDB community and become an expert finally.
https://pingcap.github.io/tidb-dev-guide/
118 stars 61 forks source link

Write down how to do benchmark for TiDB #112

Open tisonkun opened 3 years ago

tisonkun commented 3 years ago

Reference

tisonkun commented 3 years ago

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

tiancaiamao commented 3 years ago

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

tisonkun commented 3 years ago

@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 😄

tiancaiamao commented 3 years ago

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