diff --git a/core/cube/cube-api/src/cube_cli.cpp b/core/cube/cube-api/src/cube_cli.cpp index 038ed711daae42568e3a714f112bcd61369c7253..4a29ef46392af22deb1b1a633d799f9846e86c59 100644 --- a/core/cube/cube-api/src/cube_cli.cpp +++ b/core/cube/cube-api/src/cube_cli.cpp @@ -163,7 +163,6 @@ int run_m(int argc, char** argv) { uint64_t max_time = 0; uint64_t min_time = 1000000; std::vector all_time_list; - all_time_list.resize(turns * thread_num); for (int i = 0; i < thread_num; i++) { for (int j = 0; j < request_list[i]; j++) { sum_time += time_list[i][j]; @@ -191,11 +190,11 @@ int run_m(int argc, char** argv) { << std::to_string(all_time_list[static_cast(0.9 * request_num)]) << "\n99 percent: " << std::to_string(all_time_list[static_cast(0.99 * request_num)]) - << "\n999 percent: " - << std::to_string(all_time_list[static_cast(0.999 * request_num)]); - LOG(INFO) << "\ntotal_request: " << std::to_string(request_num) << "\nspeed: " - << std::to_string(turns * 1000000 / main_time) // mean_time us - << " query per second"; + << "\n99.9 percent: " + << std::to_string(all_time_list[static_cast(0.999 * request_num)]) + << "\ntotal_request: " << std::to_string(request_num) << "\nspeed: " + << std::to_string(turns * 1000000 / main_time) // mean_time us + << " query per second"; return 0; } diff --git a/python/examples/criteo_ctr_with_cube/benchmark_cube.sh b/python/examples/criteo_ctr_with_cube/benchmark_cube.sh index e4a2cb3681642312f9c7fe8199cc4d7e68f5d9bf..cb89bb1f689c54c773f7bd832567fd52db8a86e4 100755 --- a/python/examples/criteo_ctr_with_cube/benchmark_cube.sh +++ b/python/examples/criteo_ctr_with_cube/benchmark_cube.sh @@ -1,13 +1,13 @@ rm profile_log -wget https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz --no-check-certificate -tar xf ctr_cube_unittest.tar.gz +#wget https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz --no-check-certificate +#tar xf ctr_cube_unittest.tar.gz mv models/ctr_client_conf ./ mv models/ctr_serving_model_kv ./ mv models/data ./cube/ -wget https://paddle-serving.bj.bcebos.com/others/cube_app.tar.gz --no-check-certificate -tar xf cube_app.tar.gz +#wget https://paddle-serving.bj.bcebos.com/others/cube_app.tar.gz --no-check-certificate +#tar xf cube_app.tar.gz mv cube_app/cube* ./cube/ sh cube_prepare.sh & @@ -24,8 +24,7 @@ do echo "========================================" echo "batch size : $batch_size" >> profile_log echo "thread num : $thread_num" >> profile_log - tail -n 7 profile | head -n 4 >> profile_log - tail -n 2 profile >> profile_log + tail -n 8 profile >> profile_log done done