| 4277 | } |
| 4278 | |
| 4279 | void HandleClientBenchmark(::fedb::client::TabletClient* client) { |
| 4280 | uint32_t size = 40; |
| 4281 | uint32_t times = 10; |
| 4282 | std::cout << "Percentile:Start benchmark put size:40" << std::endl; |
| 4283 | HandleClientBenchmarkPut(1, 1, size, times, 1, client); |
| 4284 | std::cout << "Percentile:Start benchmark put size:80" << std::endl; |
| 4285 | HandleClientBenchmarkPut(1, 1, 80, times, 2, client); |
| 4286 | std::cout << "Percentile:Start benchmark put size:200" << std::endl; |
| 4287 | HandleClientBenchmarkPut(1, 1, 200, times, 3, client); |
| 4288 | std::cout << "Percentile:Start benchmark put ha size:400" << std::endl; |
| 4289 | HandleClientBenchmarkPut(1, 1, 400, times, 4, client); |
| 4290 | |
| 4291 | std::cout << "Percentile:Start benchmark put with one replica size:40" |
| 4292 | << std::endl; |
| 4293 | HandleClientBenchmarkPut(2, 1, size, times, 1, client); |
| 4294 | std::cout << "Percentile:Start benchmark put with one replica size:80" |
| 4295 | << std::endl; |
| 4296 | HandleClientBenchmarkPut(2, 1, 80, times, 2, client); |
| 4297 | std::cout << "Percentile:Start benchmark put with one replica size:200" |
| 4298 | << std::endl; |
| 4299 | HandleClientBenchmarkPut(2, 1, 200, times, 3, client); |
| 4300 | std::cout << "Percentile:Start benchmark put with one replica size:400" |
| 4301 | << std::endl; |
| 4302 | HandleClientBenchmarkPut(2, 1, 400, times, 4, client); |
| 4303 | |
| 4304 | std::cout << "Percentile:Start benchmark Scan 1000 records key size:40" |
| 4305 | << std::endl; |
| 4306 | HandleClientBenchmarkScan(1, 1, times, 1, client); |
| 4307 | std::cout << "Percentile:Start benchmark Scan 1000 records key size:80" |
| 4308 | << std::endl; |
| 4309 | HandleClientBenchmarkScan(1, 1, times, 2, client); |
| 4310 | std::cout << "Percentile:Start benchmark Scan 1000 records key size:200" |
| 4311 | << std::endl; |
| 4312 | HandleClientBenchmarkScan(1, 1, times, 3, client); |
| 4313 | std::cout << "Percentile:Start benchmark Scan 1000 records key size:400" |
| 4314 | << std::endl; |
| 4315 | HandleClientBenchmarkScan(1, 1, times, 4, client); |
| 4316 | } |
| 4317 | |
| 4318 | void HandleClientGetFollower(const std::vector<std::string>& parts, |
| 4319 | ::fedb::client::TabletClient* client) { |
no test coverage detected