Skip to content

A performance test comparing Scala verses Erlang with simple agents to determine messaging performance

Notifications You must be signed in to change notification settings

wasted/scala-vs-erlang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wasted.io

Scala vs Erlang Actors

Thanks to Paul Keeble for getting this benchmark project started a few years back.

Benchmark for testing Actor implementations on Scala and Erlang.

The Actor has 2 responsibilities:

  • Add a count X to the Actors current tally
  • Output the current count and reset the agent count to zero

Usability of these benchmarks

We know that these benchmarks are not representative for 99% of actor use cases, the simple idea is to get number of msgs/sec put thru the actor without having it do too much.

Erlang OTP

Compile the 3 files then run client:runTest(3000000).

Erlang bare receive version

Compile server2 as well as the 3 files for OTP and then run client:runTest2(3000000).

Scala

Actors being used are Lift Actor, Akka and our own Wactor.

Simply run ./sbt run and select one of the benchmarks.

2011 results on Scala 2.9.1 vs Erlang 5.8.5

I wrote Scala, Akka and Erlang Actor Benchmarks when i was really starting out with Scala.

About

A performance test comparing Scala verses Erlang with simple agents to determine messaging performance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 47.7%
  • Scala 44.7%
  • Shell 7.6%