Skip to content

tempbottle/mioco

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mioco

Build Status crates.io Gitter Chat
Documentation

Introduction

Scalable, asynchronous IO coroutine-based handling (aka MIO COroutines).

Using mioco you can handle scalable, asynchronous 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 still very experimental, but already usable. For real-life project using mioco see colerr.

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.

cargo build --release
make echo

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 TBD TBD
mioco 157 177

Server implementation tested:

Benchmarks used:

Machine used:

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

About

Scalable, asynchronous IO coroutine-based handling for Rust (aka MIO COroutines).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 97.2%
  • Makefile 2.8%