thousandsofthem

thousandsofthem

Comparing Languages for Engineering Server
Software: Erlang, Go, and Scala with Akka

Contains nice performance/throughput/latency comparison

Showing Posts 1 to 5

thousandsofthem

thousandsofthem OP

Erlang performance is not so bad - far better process spawn time, throughput very similar to Scala + akka, a bit worser than Golang one

AstonJ

AstonJ

For those who can’t download PDFs at work etc, here’s the conclusion (I’ve highlighted mentions of Erlang):

Conclusion
We have investigated programming language characteristics that support the engineering of multicore web servers. Crucially these languages must be able to support massive concurrency on multi- core machines with low communication and synchronisation over- heads. We have analysed 12 languages considering computation, coordination, compilation, and popularity, and selected three rep- resentative high-level languages for detailed analysis: Erlang, Go, and Scala/Akka (Section 2). We have designed three server bench- marks that analyse key performance characteristics of the languages, i.e. inter-process communication latency, process creation time, the maximum number of supported processes, and throughput (Sec- tion 3).
A summary of the recommendations based on this small set of benchmarks is as follows. For a server where minimising message latency is crucial, Go and Erlang are the best choice (Figure 3). Interestingly Akka significantly reduces communication latency in Scala (Figures 3(a) and 3(b)). Scala/Akka are capable of maintaining the largest number of dormant processes (∼11M processes in Figure 4(a)), while Erlang performs the best when processes are short lived and the goal is to ensure minimal spawn time, e.g. Erlang takes 58s to spawn 9M processes (Section 4.2). In server applications where up to 100,000 processes are frequently spawned, Erlang and Go minimise process creation time and scale smoothly (Figure 4(b)). Experiments with communicating pairs of processes show that Go provides the highest throughput independent of the number of cores and the number of process pairs (Figure 5).
Comparing the performance of complete case study servers im- plemented in each language would significantly reinforce these results, and one possibility is an Instant Messaging (IM) bench- mark [4]. It would also be interesting to study the performance overheads of providing fault tolerance and of recovering from faults, another key server capability. Finally we could compare the perfor- mance of server languages on distributed memory architectures, e.g. a cluster of multicores.

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

As Chris mentioned elsewhere, Phoenix pubsub is the only one of the pubsub implementations tested that supports being distributed.

jeremyjh

jeremyjh

In my opinion this isn’t a fair comparison; these are not “processes” they are Futures. Scala’s monad comprehensions can make your Future code look sequential, but is not sequential, and you cannot use traditional IO libraries at all outside of a dedicated thread-pool or you will block your entire scheduler.

sribe

sribe

This is one of the things that bugs me about C++ with ASIO libs–slip up and make one lousy call to the wrong standard function, and now you have a latent performance disaster that will not show up in any test but is just waiting to collapse throughput under a critical load.

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New

Other Trending Topics Top

marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews