mioco 0.1.0

Scalable, asynchronous IO coroutine-based handling (aka MIO COroutines).
docs.rs failed to build mioco-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: mioco-0.8.1

mioco

Introduction

Scalable, asynchronous IO handling using coroutines (aka MIO COroutines).

Using mioco you can handle mio-based IO, using set of synchronous-IO handling functions. Based on asynchronous mio events mioco will cooperatively schedule your handlers.

You can think of mioco as of Node.js for Rust or green threads on top of mio.

mioco is a young project, but we think it's already very useful. See projects using mioco. If you're considering or already using mioco, please drop us a line on #mioco gitter.im.

Read Documentation for details.

If you need help, try asking on #mioco gitter.im. If still no luck, try rust user forum.

To report a bug or ask for features use github issues.

Building & running

Note: You must be using nightly Rust release. If you're using multirust, which is highly recommended, switch with multirust default nightly command.

To start test echo server:

cargo run --release --example echo

For daily work:

make all

Projects using mioco:

Send PR

Benchmarks

Beware: This is very naive comparison! I tried to run it fairly, but I might have missed something. Also no effort was spent on optimizing neither mioco nor other tested tcp echo implementations.

In thousands requests per second:

bench1 bench2
libev 183 225
node 37 42
mio 156 190
mioco 157 177

Server implementation tested:

Benchmarks used:

Machine used:

  • i7-3770K CPU @ 3.50GHz, 32GB DDR3 1800Mhz, some basic overclocking, Fedora 21;