Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event loop runtimes benchmarks and mioco timeouts #46

Closed
danoctavian opened this issue Sep 7, 2015 · 6 comments
Closed

event loop runtimes benchmarks and mioco timeouts #46

danoctavian opened this issue Sep 7, 2015 · 6 comments

Comments

@danoctavian
Copy link

You might want to check this out.

https://github.com/danoctavian/c10k-bench

I've gathered together some event driven runtimes and implemented an echo server for each.

For rust, i've put in mioco and coio.

The benchmark is crude and probably flawed. Also i'm not measuring latency average and standard deviation per request.

Any feedback is greatly welcome, i would like to make it a more solid benchmark, but i don't have much exp with benchmarks.

The trouble i am encountering with mioco is that requests time out when running 3000 connections simultaneously for 30s. if i run 128 threads each sequentially doing connections for 30s it completes.

The benching code is here:
https://github.com/danoctavian/c10k-bench/blob/master/bencher/src/Lib.hs

Thank you!

@dpc
Copy link
Owner

dpc commented Sep 8, 2015

Hi. Can you try increasing slab size: https://github.com/dpc/mioco/blob/master/src/lib.rs#L1216 , as it limits the number of possible concurrent connections?

I'm very interested in tests like this, but I'm currently very short on time, so it might take me a week or two to reproduce anything.

@danoctavian
Copy link
Author

yeah sure thing, i'll play around and let you know!

@dpc
Copy link
Owner

dpc commented Sep 18, 2015

Hi, I've just pushed new version that implements multithreading, and the original problem you were hitting should be fixed too. It's working for me with go-bencher, I don't use haskell, so I haven't tried the haskell bencher.

@danoctavian
Copy link
Author

just verified. now works without failing. Thanks!

@dpc
Copy link
Owner

dpc commented Sep 19, 2015

Well, now you've got to update the scores. :P

@dpc
Copy link
Owner

dpc commented Oct 4, 2015

I've created an issue in the original repo. Closing this one.

@dpc dpc closed this as completed Oct 4, 2015
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

No branches or pull requests

2 participants