diff --git a/demo-client/src/ctr_prediction.cpp b/demo-client/src/ctr_prediction.cpp index 73bf029ff8f8211304405c59e43429e90bd102bd..92e82a36203e3f39ed871e9f5afc47b619527e90 100644 --- a/demo-client/src/ctr_prediction.cpp +++ b/demo-client/src/ctr_prediction.cpp @@ -38,7 +38,7 @@ DEFINE_int32(batch_size, 50, "Set the batch size of test file."); DEFINE_int32(concurrency, 1, "Set the max concurrency of requests"); DEFINE_int32(repeat, 1, "Number of data samples iteration count. Default 1"); DEFINE_bool(enable_profiling, - true, + false, "Enable profiling. Will supress a lot normal output"); std::vector cont_min = {0, -3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; diff --git a/demo-serving/op/ctr_prediction_op.cpp b/demo-serving/op/ctr_prediction_op.cpp index 274db260ebe10732798f58db811222804454464a..b2166819a2a6b213ae008580349e870e97797984 100644 --- a/demo-serving/op/ctr_prediction_op.cpp +++ b/demo-serving/op/ctr_prediction_op.cpp @@ -164,8 +164,12 @@ int CTRPredictionOp::inference() { LOG(INFO) << "Cube request count: " << cube_req_num_; LOG(INFO) << "Cube request key count: " << cube_req_key_num_; LOG(INFO) << "Cube request total time: " << cube_time_us_ << "us"; - LOG(INFO) << "Average " << cube_time_us_ / cube_req_num_ << "us/req"; - LOG(INFO) << "Average " << cube_time_us_ / cube_req_key_num_ << "us/key"; + LOG(INFO) << "Average " + << static_cast(cube_time_us_) / cube_req_num_ + << "us/req"; + LOG(INFO) << "Average " + << static_cast(cube_time_us_) / cube_req_key_num_ + << "us/key"; cube_time_us_ = 0; cube_req_num_ = 0;