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

comparison doesn't make any sense #11

Open
Hades32 opened this issue Feb 14, 2016 · 4 comments
Open

comparison doesn't make any sense #11

Hades32 opened this issue Feb 14, 2016 · 4 comments

Comments

@Hades32
Copy link

Hades32 commented Feb 14, 2016

.Net SYNC is not concurrent at all. This would be fast in all languages.

.Net ASYNC does NOT have a million actors at any time. Other implementations probably as well because the task is so easy that they complete faster than they can be spawned.

Sorry, but you should state clearly what you want to compare and then create a fitting benchmark.
Currently I fear the only thing you've shown that underlying implementations are very different. But not if they are better or worse at anything bit this particular program...

@rkuhn
Copy link
Contributor

rkuhn commented Feb 14, 2016

While I agree with the overall assessment, the main reason is that comparing futures with coroutines and actors concerning their instantiation performance does not make much sense because a Future is ephemeral and performs only a single-shot computation while an Actor is remotely addressable, has proper lifecycle management and supervision etc. (a coroutine is somewhat in the middle between these two extremes). This means that one is optimized for creation performance while the other is optimized for longevity.

Nevertheless I have submitted #13 to make the Akka sample more idiomatic (i.e. everything is a message). This reduces the runtime down by a factor of 5 (roughly) on my machine.

@wizzard0
Copy link
Collaborator

Indeed, we're mixing Actors, Coroutines and Futures/Promises here, unfortunately :(

@Drup Drup mentioned this issue Feb 14, 2016
@schmitch
Copy link

and CSP style. (goroutines) which somewhere sits between coroutines and actors.

@Daxten
Copy link

Daxten commented Feb 15, 2016

@schmitch does it really sit inbetween? I would say it's "just" syntax sugar from the compiler and is exactly what Future/Promises are (which are just a abstract syntax over threads)

actors are something different

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

5 participants