Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lynncui00 authored Aug 25, 2016
1 parent 0db0fa2 commit 46d3672
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@

| ucontext类型/IO线程 | 1 | 3 | 8 | 20 |
| ----- | ---- | ---- | ---- | ---- |
| system | 4.1w | 8.5w | 9w | 9.2w |
| boost | 4.5w | 9.5w | 9.5w | 9.5w |
| system | 41k | 85k | 90k | 92k |
| boost | 45k | 95k | 95k | 95k |

#### 长连接

| ucontext类型/IO线程 | 1 | 3 | 8 | 20 |
| ----- | ---- | ----- | --- | --- |
| system | 5.5w | 16w | 36w | 50w |
| boost | 6.2w | 17.5w | 41w | 50w |
| system | 55k | 160k | 360k | 500k |
| boost | 62k | 175k | 410k | 500k |

# 如何编译
#### Protobuf准备
Expand Down Expand Up @@ -128,19 +128,22 @@ service Search{

```c++
int SearchServiceImpl :: PHXEcho( const google::protobuf::StringValue & req,
google::protobuf::StringValue * resp ) {
google::protobuf::StringValue * resp )
{
resp->set_value( req.value() );
return 0;
}

int SearchServiceImpl :: Search( const search::SearchRequest & req,
search::SearchResult * resp ) {
search::SearchResult * resp )
{
//这里补充这个RPC调用的Server端代码
return -1;
}

int SearchServiceImpl :: Notify( const google::protobuf::StringValue & req,
google::protobuf::Empty * resp ) {
google::protobuf::Empty * resp )
{
//这里补充这个RPC调用的Server端代码
return -1;
}
Expand Down

0 comments on commit 46d3672

Please sign in to comment.