Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kedebug committed Mar 8, 2014
1 parent dffb911 commit 916bd33
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,24 @@ YoHub
* _Smart pointer for connections_. For most scenarios, yohub uses `shared_ptr` to automatic memory management, which is inspired from [muduo](http://code.google.com/p/muduo/). YoHub takes advantage of smart pointers which can help us take care of the life cycle of those asychronous connections, and has greatly reduced our programming burden.

### Performance
YoHub is designed to be a high-performance network application framework, which can be used to solve the C100K problem. The benchmark pragram is token from the [libevent-1.4.14b](http://libevent.org/) distribution, modified to compatible with the event pool in yohub. Both libevent and yohub are configured to use the epoll interface and run on a Core4 Quad CPU at 2.5GHz with Ubuntu 12.04 operating system.

* __100 active clients.__

![100](https://raw.github.com/kedebug/kedebug.github.com/master/pic/100.png)

* __1000 active clients.__

![1000](https://raw.github.com/kedebug/kedebug.github.com/master/pic/1000.png)

The benchmark program takes the paramter `-n` equals to `-w`, which means every client will be notified to read and wirte. The above pictures show that yohub has lower costs than libevent-1.4.14b. With the increment of the file descriptor, this tendency becomes more and more obvious.

### Usage
To use yohub, boost library is required to be installed in your machine. After that:
```
cmake . && make
```
Please see the files under `yohub/demo/` directory for further usage.

### License
[MIT](http://opensource.org/licenses/MIT)

0 comments on commit 916bd33

Please sign in to comment.