pingcap / go-tpc

A toolbox to benchmark TPC workloads in Go
Apache License 2.0
178 stars 94 forks source link

Add explain support for CHbenchmark #164

Closed breezewish closed 1 year ago

breezewish commented 1 year ago
  1. Support --use-explain for CHbenchmark.
  2. Always drain the result by calling rows.Next() and then report the duration. Otherwise the reported CHbenchmark query time may be inaccurate sometimes.
  3. Use logger to output stderr to avoid interleaving results.