Skip to content

Comments

Add grpc benchmark#6176

Closed
typhoonzero wants to merge 4 commits intoPaddlePaddle:developfrom
typhoonzero:grpc_benchmark
Closed

Add grpc benchmark#6176
typhoonzero wants to merge 4 commits intoPaddlePaddle:developfrom
typhoonzero:grpc_benchmark

Conversation

@typhoonzero
Copy link
Contributor

Related: #5963

{{"Out", {"Out"}}}, attrs);
paddle::platform::CPUDeviceContext ctx(place);
recv_op->Run(scope, ctx);
while (1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about delete the while block if only run once.

std::unique_ptr<paddle::framework::OperatorBase> recv_op;
int benchmark_count = 1000;
// FIXME(typhoonzero): protobuf message size limits the maximum tensor size
int mat_size = 512;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a benchmark, we can run multi times with different tensor size.

@typhoonzero
Copy link
Contributor Author

Closing, will put benchmark in a general place, see: #6941

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants