forked from fbettag/scala-vs-erlang
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul Keeble
committed
Jul 16, 2011
1 parent
606f9dc
commit f297285
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Erlang V Scala Agents | ||
|
||
An implementation of a performance test comparing an Agent that has just two responsibilties: | ||
1) Add a Count X to the agents current tally | ||
2) Get the current count and reset the agent count to zero | ||
|
||
Two implementations are provided, one using Erlang's OTP gen_server and one using Scala's Actors. | ||
|
||
With Scala 2.9.0 and Erlang 5.8.1 the Erlang implementation is 6x faster than Scala. | ||
|
||
To run the erlang version compile the 3 files then run client:runTest(3000000). | ||
|
||
To run the scala version compile both files and run the Client. |