News for hackers. Stuff that matters.
Re:TiDB 4.0 GA Release by orhanhh on Saturday June 20, 2020 @04:10AM (#23582568)
I recently benchmarked TiDB (pre 4.0), CockroachDB and YugabyteDB. TiDB outperformed the others for write throughout and latency, probably because it has a bit weaker isolation guarantees (snapshot vs serializable). However, for all read operations, CockroachDB performed significantly better than TiDB. It would be interesting to do a new comparison with version 4.0, as it seems from this article that they have improved performance quite a bit.
Re:TiDB 4.0 GA Release by sanxiyn on Saturday June 20, 2020 @05:53AM (#23582945)
I mean, CockroachDB does not target OLAP use cases, but TiDB does. This is a fundamental design choice with tradeoffs, so I think some performance gap for OLTP use cases is expected.
Re:TiDB 4.0 GA Release by nujabe on Saturday June 20, 2020 @04:52AM (#23582707)
How did you benchmark?
Re:TiDB 4.0 GA Release by orhanhh on Saturday June 20, 2020 @05:18AM (#23582810)
I used oltpbenchmark and ran automated tests on hetzner cloud using Terraform and some automation scripts. The comparisons are based on the YCSB workloads executed by oltpbenchmark.
Re:TiDB 4.0 GA Release by youjiali1995 on Monday June 22, 2020 @07:59AM (#23599236)
Hi, I want to reproduce it. Could you tell me how much scalefactor did you use and did you change the default weights?
Re:TiDB 4.0 GA Release by orhanhh on Saturday June 27, 2020 @04:14AM (#23660295)
I used 100 as the scale factor and used different weights for benchmarks A through F, defined by the original YCSB project here: https://github.com/brianfrankcooper/YCSB/tree/master/workloa...
Re:TiDB 4.0 GA Release by shenli3514 on Saturday June 27, 2020 @05:30AM (#23660587)
May I know how many instances are there in crdb/tidb cluster and the concurrency in the benchmark? We found that for small clusters (for example 3 instances), CRDB could be fast in read-only workload. Because CRDB is single binary, about 1/3 read operation will not involve RPC. TiDB need to involve a RPC for every request. For larger scale cluster or high concurrency, it is a different story.
Re:TiDB 4.0 GA Release by orhanhh on Sunday June 28, 2020 @07:06PM (#23672754)
I tested clusters with between 3 and 12 nodes, and the differences were similar for the different sizes. I’m not sure how it performs for larger clusters than that though. Additionally, the results might have been a bit misleading on the large clusters because of the low scale factor, leading to higher contention on some rows.