Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
32704: workload/ycsb: add flag to use column families r=nvanbenschoten a=nvanbenschoten This change adds a new `--families` flag to the ycsb workload. Now that cockroachdb#18168 is addressed, this significantly reduces the contention present in the workload by avoiding conflicts on updates to different columns in the same table. I just confirmed that this still provides a huge speedup. On a 24 cpu machine: ``` workload run ycsb --init --workload='A' --concurrency=128 --duration=1m --families=false gives: _elapsed___errors_____ops(total)___ops/sec(cum)__avg(ms)__p50(ms)__p95(ms)__p99(ms)_pMax(ms)__total 60.0s 0 103089 1718.0 13.9 0.6 1.8 604.0 1476.4 read 60.0s 0 102947 1715.6 59.5 5.2 11.5 2281.7 8321.5 update _elapsed___errors_____ops(total)___ops/sec(cum)__avg(ms)__p50(ms)__p95(ms)__p99(ms)_pMax(ms)__result 60.0s 0 206036 3433.6 36.7 3.3 8.9 1342.2 8321.5 --families=true gives: _elapsed___errors_____ops(total)___ops/sec(cum)__avg(ms)__p50(ms)__p95(ms)__p99(ms)_pMax(ms)__total 60.0s 0 333477 5557.8 9.2 0.6 6.0 302.0 1275.1 read 60.0s 0 332366 5539.3 13.7 6.8 17.8 54.5 4831.8 update _elapsed___errors_____ops(total)___ops/sec(cum)__avg(ms)__p50(ms)__p95(ms)__p99(ms)_pMax(ms)__result 60.0s 0 665843 11097.1 11.5 3.9 16.3 268.4 4831.8 ``` cc. @robert-s-lee @drewdeally Release note: None Co-authored-by: Nathan VanBenschoten <[email protected]>
- Loading branch information